Skip to main content

Overview

useValidateIdentityProviderIntent hook is used to validate an identity provider intent. It leverages the react-query library to manage the asynchronous operation and provides error handling and success callbacks.

Parameters

(session: Session | undefined) => void
required
callback function that is called when the validation process is successful. It receives the Session object as an argument.
Session type
HttpErrorCallback
required
callback function that is called when an error occurs during the validation process.
HttpErrorCallback type

Returns

(request: ValidateIdentityProviderIntentRequest) => void
function that triggers the validation process with the provided payload.
ValidateIdentityProviderIntentRequest type
boolean
boolean indicating whether the validation process is currently in progress.
boolean
boolean indicating whether an error occurred during the validation process.
HttpError | Error | null
error object if an error occurred during the validation process.