FrontendAuthorizationClient Interface

Beta  

Extends

Implemented by

Methods

Name Description
Called to start the sign-in process.  
signOut(requestContext?: ClientRequestContext): Promise<void> Called to start the sign-out process.  

Inherited methods

Name Inherited from Description
getAccessToken(requestContext?: ClientRequestContext): Promise<AccessToken> AuthorizationClient Get the AccessToken of the currently authorized user.

Properties

Name Type Description
hasSignedIn Readonly boolean Set to true if signed in - the accessToken may be active or may have expired and require a refresh  
onUserStateChanged Readonly BeEvent<(token: undefined | AccessToken) => void> Event called when the user's sign-in state changes - this may be due to calls to signIn(), signOut() or simply because the token expired  

Inherited properties

Name Type Inherited from Description
isAuthorized Readonly boolean AuthorizationClient is the user currently authorized?

Defined in

Last Updated: 11 June, 2024