diff --git a/src/hooks/Auth0Context.ts b/src/hooks/Auth0Context.ts index edc4f3a0..177949a1 100644 --- a/src/hooks/Auth0Context.ts +++ b/src/hooks/Auth0Context.ts @@ -20,7 +20,10 @@ import type { ResetPasswordParameters, MfaChallengeResponse, } from '../types'; -import type { NativeAuthorizeOptions } from '../types/platform-specific'; +import type { + NativeAuthorizeOptions, + NativeClearSessionOptions, +} from '../types/platform-specific'; import type { AuthState } from './reducer'; /** @@ -43,10 +46,14 @@ export interface Auth0ContextInterface extends AuthState { /** * Clears the user's session and logs them out. * @param parameters The parameters to send to the `/v2/logout` endpoint. + * @param options Platform-specific options to customize the logout experience. * @returns A promise that resolves when the session has been cleared. * @throws {AuthError} If the logout fails. */ - clearSession(parameters?: ClearSessionParameters): Promise; + clearSession( + parameters?: ClearSessionParameters, + options?: NativeClearSessionOptions + ): Promise; /** * Saves the user's credentials.