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
callback function that is called when the validation process is successful. It receives the Session object as an argument.
Session type
callback function that is called when an error occurs during the validation process.
HttpErrorCallback type
Returns
function that triggers the validation process with the provided payload.
ValidateIdentityProviderIntentRequest type
boolean indicating whether the validation process is currently in progress.
boolean indicating whether an error occurred during the validation process.
error object if an error occurred during the validation process.