AuthHandler

Utility class meant to be used as a singleton to access auth data.

Type

class AuthHandler {
public readonly accessToken$: Observable<string>;
public readonly decodedToken$: Observable<DecodedAccessToken>;
public readonly permissions$: Observable<CustomerPermission[]>;
public readonly status$: Observable<Status>;
constructor(tokenHandler: TokenHandler)
invalidate = () => void;
}

Properties

accessToken$: Observable<string>observable providing an accessToken (string) stream
decodedToken$: Observable<DecodedAccessToken>observable providing a DecodedAccessToken stream
permissions$: Observable<CustomerPermission[]>observable providing a CustomerPermission[] stream
status$: Observable<Status>observable providing a Status stream
invalidate(): () => voidA function to call TokenHandler.invalidate, see TokenHandler docs for additional information

Methods

none