Create base main page
This commit is contained in:
@@ -13,6 +13,14 @@ export class AuthApi {
|
||||
|
||||
static authStatus = atom(this.SignedIn);
|
||||
|
||||
/**
|
||||
* Get user auth token
|
||||
*/
|
||||
static get AuthToken(): string {
|
||||
if (!this.SignedIn) throw new Error("User is not authenticated!");
|
||||
return sessionStorage.getItem(TokenStateKey)!;
|
||||
}
|
||||
|
||||
/**
|
||||
* Start OpenID login
|
||||
*
|
||||
|
Reference in New Issue
Block a user