1 | declare type AuthSessionOptions = {
|
2 | authUrl: string;
|
3 | returnUrl?: string;
|
4 | };
|
5 | declare type AuthSessionResult = {
|
6 | type: 'cancel' | 'dismiss' | 'locked';
|
7 | } | {
|
8 | type: 'error' | 'success';
|
9 | errorCode: string | null;
|
10 | params: {
|
11 | [key: string]: string;
|
12 | };
|
13 | url: string;
|
14 | };
|
15 | declare function startAsync(options: AuthSessionOptions): Promise<AuthSessionResult>;
|
16 | declare function dismiss(): void;
|
17 | declare function getStartUrl(authUrl: string, returnUrl: string): string;
|
18 | declare function getRedirectUrl(): string;
|
19 | declare function getDefaultReturnUrl(): string;
|
20 | declare const _default: {
|
21 | dismiss: typeof dismiss;
|
22 | getRedirectUrl: typeof getRedirectUrl;
|
23 | getStartUrl: typeof getStartUrl;
|
24 | getDefaultReturnUrl: typeof getDefaultReturnUrl;
|
25 | readonly getRedirectUri: typeof getRedirectUrl;
|
26 | startAsync: typeof startAsync;
|
27 | };
|
28 | export default _default;
|