Generate experiences with Puck AI
Read docs
CloudAPI referencecloud-clientServer APIsauth.signOut

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

ParamExampleTypeStatus
headersOrRequestawait headers()Request | HeadersRequired
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.