-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide on how to get user data #1028
Conversation
Suggested way to get access to the user data on the frontend
I specified that you can also get the user id on the frontend from "@teamhanko/hanko-elements" on the guide, before I was only referring to the email in this section Commit Type: docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code listings are for a specific language/framework which is not declared anywhere, so IMO it would be nice to have a selector like the one in the backend guide. So we can add more code listings for different languages/frameworks later.
"Data" to "data" Commit Type: docs Co-authored-by: Frederic Jahn <[email protected]>
Heading restructuring Co-authored-by: Frederic Jahn <[email protected]>
Restructuring intro to the guide Commit Type: docs Co-authored-by: Frederic Jahn <[email protected]>
Omitting information that could be too specific Commit Type:docs Co-authored-by: Frederic Jahn <[email protected]>
Suggesting the user where to use the function instead of specifying it Commit Type: docs Co-authored-by: Frederic Jahn <[email protected]>
The function should "return" the userData object instead of just log it Commit Type: docs Co-authored-by: Frederic Jahn <[email protected]>
Renamed the file from "userId.mdx" to "userData.mdx" Commit Type: docs Co-authored-by: Frederic Jahn <[email protected]>
I separated the content depending on where the user data is needed, frontend or backend. Added a selector specifying that the examples in this guide are Next.js related, also prepared it for adding other frameworks in the future Commit Type: docs
Typo corrected Commit Type: docs Co-authored-by: bjoern-m <[email protected]>
Typo corrected Commit Type: docs Co-authored-by: bjoern-m <[email protected]>
Function simplified commit type: docs Co-authored-by: bjoern-m <[email protected]>
Updated the function to get the user data using the Admin API to return properly the response. Also updated the general text explaining the examples for better understanding of the users. Commit Type: docs
could you resolve the merge conflict? theres still one "change requested" notice on this PR, has this bee addressed? |
@lfleischmann there’s this issue with |
All requested changes fixed
Getting user data from token