NextJs SDK: currentUser() does not return full User object (Organization fields) #2140
Replies: 1 comment 1 reply
-
Asking in the Discord instead |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background: Using NextJs 14, I'm trying to fetch the current user with
currentUser()
from a Server Component. Link to currentUser() docs:.Issue: The docs say that
currentUser()
should return theUser
object, but it's missing all fields about Organizations.I tried using the backend sdk to fetch info about the user, but also nothing re: Organzations.
The only way I've managed to retrieve Organization data for a userId is the client-side hook
useUser()
, which hasorganizationMemberships
field. How can I access this from back end?Am I missing something? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions