Overview
useSignOut hook is used to handle the sign-out process. It leverages the react-query library to manage the asynchronous operation and provides error handling.Example Usage
sign-out-component.tsx
Returns
() => void
function that triggers the sign-out process.
boolean
boolean indicating whether the sign-out process is currently in progress.
boolean
boolean indicating whether an error occurred during the sign-out process.
HttpError | Error
error object if an error occurred during the sign-out process.