@okta/okta-angular
Version:
Angular support for Okta
19 lines (18 loc) • 708 B
TypeScript
import { OnDestroy } from '@angular/core';
import { AuthState, OktaAuth } from '@okta/okta-auth-js';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare type Groups = string | string[] | {
[key: string]: string[];
};
export declare class OktaAuthStateService implements OnDestroy {
private oktaAuth;
private _authState;
readonly authState$: Observable<AuthState>;
constructor(oktaAuth: OktaAuth);
ngOnDestroy(): void;
hasAnyGroups(groups: Groups): Observable<boolean>;
private updateAuthState;
static ɵfac: i0.ɵɵFactoryDeclaration<OktaAuthStateService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<OktaAuthStateService>;
}