Merge pull request #8401 from Hallidayo/docs-next-get-user

This commit is contained in:
Inian authored and GitHub committed 2022-08-19 12:44:16 +08:00
commit e6ea6dbf36
1 file changed
+2 -2
+2 -2
View File
@@ -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()'