1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class GenericError extends Error {
|
9 | error: string;
|
10 | error_description: string;
|
11 | constructor(error: string, error_description: string);
|
12 | static fromPayload({ error, error_description }: {
|
13 | error: string;
|
14 | error_description: string;
|
15 | }): GenericError;
|
16 | }
|
17 | /**
|
18 | * Thrown when handling the redirect callback fails, will be one of Auth0's
|
19 | * Authentication API's Standard Error Responses: https://auth0.com/docs/api/authentication?javascript#standard-error-responses
|
20 | */
|
21 | export declare class AuthenticationError extends GenericError {
|
22 | state: string;
|
23 | appState: any;
|
24 | constructor(error: string, error_description: string, state: string, appState?: any);
|
25 | }
|
26 | /**
|
27 | * Thrown when silent auth times out (usually due to a configuration issue) or
|
28 | * when network requests to the Auth server timeout.
|
29 | */
|
30 | export declare class TimeoutError extends GenericError {
|
31 | constructor();
|
32 | }
|
33 | /**
|
34 | * Error thrown when the login popup times out (if the user does not complete auth)
|
35 | */
|
36 | export declare class PopupTimeoutError extends TimeoutError {
|
37 | popup: Window;
|
38 | constructor(popup: Window);
|
39 | }
|
40 | export declare class PopupCancelledError extends GenericError {
|
41 | popup: Window;
|
42 | constructor(popup: Window);
|
43 | }
|
44 | /**
|
45 | * Error thrown when the token exchange results in a `mfa_required` error
|
46 | */
|
47 | export declare class MfaRequiredError extends GenericError {
|
48 | mfa_token: string;
|
49 | constructor(error: string, error_description: string, mfa_token: string);
|
50 | }
|