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
Parameters
callback function that is called when the sign-our process is completed.
callback function that is called when an error occurs during the sign-in process.
Returns
function that triggers the sign-out process.
boolean indicating whether the sign-out process is currently in progress.
boolean indicating whether an error occurred during the sign-out process.
error object if an error occurred during the sign-out process.