@@ -12,7 +12,6 @@ type AuthContextType = {
1212 permissions : string [ ] | undefined ;
1313 entitlements : string [ ] | undefined ;
1414 impersonator : Impersonator | undefined ;
15- accessToken : string | undefined ;
1615 loading : boolean ;
1716 getAuth : ( options ?: { ensureSignedIn ?: boolean } ) => Promise < void > ;
1817 refreshAuth : ( options ?: { ensureSignedIn ?: boolean ; organizationId ?: string } ) => Promise < void | { error : string } > ;
@@ -38,7 +37,6 @@ export const AuthKitProvider = ({ children, onSessionExpired }: AuthKitProviderP
3837 const [ permissions , setPermissions ] = useState < string [ ] | undefined > ( undefined ) ;
3938 const [ entitlements , setEntitlements ] = useState < string [ ] | undefined > ( undefined ) ;
4039 const [ impersonator , setImpersonator ] = useState < Impersonator | undefined > ( undefined ) ;
41- const [ accessToken , setAccessToken ] = useState < string | undefined > ( undefined ) ;
4240 const [ loading , setLoading ] = useState ( true ) ;
4341
4442 const getAuth = async ( { ensureSignedIn = false } : { ensureSignedIn ?: boolean } = { } ) => {
@@ -51,7 +49,6 @@ export const AuthKitProvider = ({ children, onSessionExpired }: AuthKitProviderP
5149 setPermissions ( auth . permissions ) ;
5250 setEntitlements ( auth . entitlements ) ;
5351 setImpersonator ( auth . impersonator ) ;
54- setAccessToken ( auth . accessToken ) ;
5552 } catch ( error ) {
5653 setUser ( null ) ;
5754 setSessionId ( undefined ) ;
@@ -60,7 +57,6 @@ export const AuthKitProvider = ({ children, onSessionExpired }: AuthKitProviderP
6057 setPermissions ( undefined ) ;
6158 setEntitlements ( undefined ) ;
6259 setImpersonator ( undefined ) ;
63- setAccessToken ( undefined ) ;
6460 } finally {
6561 setLoading ( false ) ;
6662 }
@@ -81,7 +77,6 @@ export const AuthKitProvider = ({ children, onSessionExpired }: AuthKitProviderP
8177 setPermissions ( auth . permissions ) ;
8278 setEntitlements ( auth . entitlements ) ;
8379 setImpersonator ( auth . impersonator ) ;
84- setAccessToken ( auth . accessToken ) ;
8580 } catch ( error ) {
8681 return error instanceof Error ? { error : error . message } : { error : String ( error ) } ;
8782 } finally {
@@ -154,7 +149,6 @@ export const AuthKitProvider = ({ children, onSessionExpired }: AuthKitProviderP
154149 permissions,
155150 entitlements,
156151 impersonator,
157- accessToken,
158152 loading,
159153 getAuth,
160154 refreshAuth,
0 commit comments