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
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.