mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Update docs for auth.getUser() to add reference to auth.getSession() as a faster alternative
This commit is contained in:
1 parent
083bcda053
commit
45f2b474ea
1 file changed
+1
@@ -356,6 +356,7 @@ functions:
|
||||
notes: |
|
||||
- This method gets the user object from the current session.
|
||||
- Fetches the user object from the database instead of local session.
|
||||
- Should be used only when you require the most current user data. For faster results, `getSession().session.user` is recommended.
|
||||
examples:
|
||||
- id: get-the-logged-in-user-with-the-current-existing-session
|
||||
name: Get the logged in user with the current existing session
|
||||
|
||||
Reference in new issue
Block a user