ElectronMainAuthorization Class

Utility to generate OIDC/OAuth tokens for Desktop Applications

Implements

Methods

Name Description
constructor(config: ElectronMainAuthorizationConfiguration): ElectronMainAuthorization    
getAccessToken(): Promise<string>    
refreshToken(): Promise<string> Forces a refresh of the user's access token regardless if the current token has expired.  
Initializes and completes the sign-in process for the user.  
signInSilent(): Promise<void> Attempts a silent sign in with the authorization provider  
signOut(): Promise<void> Signs out the current user.  

Properties

Name Type Description
_accessToken Protected string    
issuerUrl Accessor ReadOnly string    
onUserStateChanged Static Readonly BeEvent<(token: string) => void>    
redirectUris Accessor ReadOnly string[]    
scopes Accessor ReadOnly string    

Defined in

Last Updated: 06 November, 2024