snippets.authLogout() — supabase Function Reference
Architecture documentation for the snippets.authLogout() function in Snippets.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Docs/Snippets.ts lines 767–784
authLogout: (endpoint: string, apiKey: string) => ({
title: 'User logout',
bash: {
language: 'bash',
code: `
curl -X POST '${endpoint}/auth/v1/logout' \\
-H "apikey: ${apiKey}" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer USER_TOKEN"
`,
},
js: {
language: 'js',
code: `
let { error } = await supabase.auth.signOut()
`,
},
}),
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free