import { AuthParameters } from './authParameters'; import { Scope } from './models'; import { WithPkceParams } from './pkceService'; export type ResponseType = 'code' | 'token'; export type Prompt = 'none' | 'login' | 'consent' | 'select_account'; /** * More infos here: https://developer.reach5.co/api/identity-web-legacy/#authentication-options */ export type AuthOptions = { responseType?: ResponseType; redirectUri?: string; scope?: Scope; fetchBasicProfile?: boolean; useWebMessage?: boolean; popupMode?: boolean; prompt?: Prompt; origin?: string; state?: string; nonce?: string; providerScope?: string; idTokenHint?: string; loginHint?: string; accessToken?: string; requireRefreshToken?: boolean; persistent?: boolean; }; /** * Transform authentication options into authentication parameters * @param opts * Authentication options * @param acceptPopupMode * Indicates if the popup mode is allowed (depends on the type of authentication or context) * @param defaultScopes * Default scopes */ export declare function computeAuthOptions(opts?: WithPkceParams, { acceptPopupMode }?: { acceptPopupMode?: boolean; }, defaultScopes?: string): WithPkceParams;