@burdenoff/fe-libs 2026.1019.2 → 2026.1019.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ProfileUser, AuthTokens, ProfileMeta } from './ProfileStorageManager';
|
|
3
|
+
import { AuthActions } from './authProvider/useAuthActions';
|
|
3
4
|
export type { ProfileUser as User, AuthTokens, ProfileMeta };
|
|
4
5
|
export interface Account {
|
|
5
6
|
id: string;
|
|
@@ -17,9 +18,11 @@ export interface AuthContextValue {
|
|
|
17
18
|
isAuthenticated: boolean;
|
|
18
19
|
isLoading: boolean;
|
|
19
20
|
login: (user: ProfileUser, accessToken: string, refreshToken?: string) => void;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The hook's own signature, so the context cannot drift from it: it once
|
|
23
|
+
* declared narrower options and rejected `accessToken` (BOFF-9411).
|
|
24
|
+
*/
|
|
25
|
+
logout: AuthActions['logout'];
|
|
23
26
|
updateUser: (user: Partial<ProfileUser>) => void;
|
|
24
27
|
refreshAccessToken: () => Promise<void>;
|
|
25
28
|
hasPermission: (permission: string) => boolean;
|