Skip to main content
POST
/
signout
Sign out
curl --request POST \
  --url https://{subdomain}.auth.{region}.nhost.run/v1/signout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "refreshToken": "<string>",
  "all": false
}'
"OK"

Authorizations

Authorization
string
header
required

Bearer authentication with JWT access token. Used to authenticate requests to protected endpoints.

Body

application/json

Sign-out options including refresh token and whether to sign out from all devices

refreshToken
string

Refresh token for the current session

all
boolean
default:false

Sign out from all connected devices

Response

Successfully signed out

The response is of type enum<string>.

Available options:
OK
I