Update docs for auth.getUser() to add reference to auth.getSession() as a faster alternative

This commit is contained in:
Lucas Smith authored and GitHub committed 2023-02-13 09:12:26 +11:00
1 parent 083bcda053
commit 45f2b474ea
1 file changed
+1
+1
View File
@@ -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