UNPKG

1.15 kBTypeScriptView Raw
1export type EventType = 'discovery_document_loaded' | 'jwks_load_error' | 'invalid_nonce_in_state' | 'discovery_document_load_error' | 'discovery_document_validation_error' | 'user_profile_loaded' | 'user_profile_load_error' | 'token_received' | 'token_error' | 'code_error' | 'token_refreshed' | 'token_refresh_error' | 'silent_refresh_error' | 'silently_refreshed' | 'silent_refresh_timeout' | 'token_validation_error' | 'token_expires' | 'session_changed' | 'session_error' | 'session_terminated' | 'session_unchanged' | 'logout' | 'popup_closed' | 'popup_blocked' | 'token_revoke_error';
2export declare abstract class OAuthEvent {
3 readonly type: EventType;
4 constructor(type: EventType);
5}
6export declare class OAuthSuccessEvent extends OAuthEvent {
7 readonly info: any;
8 constructor(type: EventType, info?: any);
9}
10export declare class OAuthInfoEvent extends OAuthEvent {
11 readonly info: any;
12 constructor(type: EventType, info?: any);
13}
14export declare class OAuthErrorEvent extends OAuthEvent {
15 readonly reason: object;
16 readonly params: object;
17 constructor(type: EventType, reason: object, params?: object);
18}