mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
Merge pull request #8401 from Hallidayo/docs-next-get-user
This commit is contained in:
1 file changed
+2
-2
@@ -274,13 +274,13 @@ pages:
|
||||
isSpotlight: true
|
||||
js: |
|
||||
```js
|
||||
const user = await supabase.auth.getUser()
|
||||
const { data: { user } } = await supabase.auth.getUser()
|
||||
```
|
||||
- name: Get the logged in user with a custom access token jwt.
|
||||
isSpotlight: false
|
||||
js: |
|
||||
```js
|
||||
const user = supabase.auth.getUser(jwt)
|
||||
const { data: { user } } = await supabase.auth.getUser(jwt)
|
||||
```
|
||||
auth.updateUser():
|
||||
title: 'updateUser()'
|
||||
|
||||
Reference in new issue
Block a user