Skip to content
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

In Auth docs, advise how to deal with User data (storing it in User object vs fetching from Auth -> Identities) #2034

Open
Martinsos opened this issue May 15, 2024 · 0 comments
Labels
auth documentation Improvements or additions to documentation

Comments

@Martinsos
Copy link
Member

While we do somewhat mention this stuff, and we do have part in docs that tells how to populate a user in Prisma query, the fact is that this is just quite complex, and it is not easy for a user to figure out how to best go around this.

In this piece of docs, we should give them guidance on how to deal with User data.
We should point to them that they can, during signup, by using userSignupFields, store fields directly on the User. We should give some examples, explain when it should be done, when not.
We should demonstrate how to fetch the data about user in different situations -> how to do it when they have AuthUser available, vs how to do it when they want to populate user in Prisma query (related: #2033).

@Martinsos Martinsos added documentation Improvements or additions to documentation auth labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant