Function: signOut()
function signOut(options?): Promise<Response>
Calls the Auth.js sign-out route to remove the active session.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | ClientOptions | Overrides for base path, headers, or a custom fetch implementation. |
Returns
Promise
<Response
>
A Response
emitted by the /signout
endpoint.
Examples
await signOut()
await signOut({ fetch: myEdgeSafeFetch })