---
title: "Logs out a user."
method: POST
path: "/logout"
tags: ["auth"]
---

# Logs out a user.

`POST /logout`

## Query parameters

- `scope` 'global' | 'local' | 'others'

## Response `204`

No content returned on successful logout.

## Other responses

- `401` — HTTP Unauthorized response.

---

[API](https://skmtc.net/supabase/apis/supabase-auth-rest-api.md) · [All operations](https://skmtc.net/supabase/apis/supabase-auth-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/supabase/supabase-auth-rest-api/versions/2664b89bee49/schema)
