export type LogtoRequestErrorBody = { code: string; message: string; }; /** * A request function that accepts a `fetch`-like function parameters and returns * a promise with the parsed response body. */ export type Requester = (...args: Parameters) => Promise; /** * The interaction mode to be used for the authorization request. Note it's not * a part of the OIDC standard, but a Logto-specific extension. * * - `signIn`: The authorization request will be initiated with a sign-in page. * - `signUp`: The authorization request will be initiated with a sign-up page. * * @deprecated Use `FirstScreen` instead. */ export type InteractionMode = 'signIn' | 'signUp'; /** * The first screen to be shown in the sign-in experience. Note it's not a part of the OIDC * standard, but a Logto-specific extension. * * Note: `signIn` is deprecated, use `sign_in` instead */ export type FirstScreen = 'signIn' | 'sign_in' | 'register' | 'reset_password' | 'identifier:sign_in' | 'identifier:register' | 'single_sign_on';