snippets.authUpdate() — supabase Function Reference
Architecture documentation for the snippets.authUpdate() function in Snippets.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Docs/Snippets.ts lines 738–766
authUpdate: (endpoint: string, apiKey: string) => ({
title: 'Update User',
bash: {
language: 'bash',
code: `
curl -X PUT '${endpoint}/auth/v1/user' \\
-H "apikey: ${apiKey}" \\
-H "Authorization: Bearer USER_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"email": "someone@email.com",
"password": "new-password",
"data": {
"key": "value"
}
}'
`,
},
js: {
language: 'js',
code: `
const { data, error } = await supabase.auth.updateUser({
email: "new@email.com",
password: "new-password",
data: { hello: 'world' }
})
`,
},
}),
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free