ElectronMainAuthorization Class

Utility to generate OIDC/OAuth tokens for Desktop Applications

Implements

Methods

Name Description
constructor(config: ElectronMainAuthorizationConfiguration): ElectronMainAuthorization    
clearTokenCache(): Promise<void> Protected    
getAccessToken(): Promise<string>    
loadAccessToken(): Promise<string> Protected Loads the access token from the store, and refreshes it if necessary and possible  
processTokenResponse(tokenResponse: TokenResponse): Promise<string> Protected    
refreshToken(): Promise<string> Forces a refresh of the user's access token regardless if the current token has expired.  
setAccessToken(token: string): void Protected    
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: 28 February, 2025