Skip to main content
POST
/
api
/
v3
/
store
/
auth
/
logout
Spree SDK
import { createClient } from '@spree/sdk'

const client = createClient({
  baseUrl: 'https://your-store.com',
  publishableKey: '<api-key>',
})

await client.auth.logout({
  refresh_token: 'rt_xxx',
})

Authorizations

x-spree-api-key
string
header
required

Publishable API key for store access

Authorization
string
header
required

JWT token for authenticated customers

Headers

x-spree-api-key
string
required
Authorization
string
required

Body

application/json
refresh_token
string

Refresh token to revoke

Response

204

logout without refresh token (no-op)