auth.signOut
Puck Auth is experimental and may change in a future release.
Sign out the user signed in with Puck Auth.
await puck.auth.signOut(await headers());Ends the user’s Puck Cloud session.
Args
| Param | Example | Type | Status |
|---|---|---|---|
headersOrRequest | await headers() | Request | Headers | Required |
options | { apiKey: "SECRET" } | Object | - |
headersOrRequest
The incoming request, or its headers, with the session cookie. For example, the result of Next’s headers().
options
Set the request options for this call.