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