Replies: 1 comment
-
Finally managed to figure this one out.
use the custom adapter and make sure the profile has the oid so it can be passed to the custom adapter
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Using the prisma adapter I want to set the user ID for new users manually.
The prisma adapter always creates a new user in the database if a user tries to log in which is not already in the database.
I cann hand over a
profile
function inside the AzureProvider which handles the returned data of the user. There I hand over the ID of the AzureProfile of this user. But prisma will always ignore the ID field and let the database create the ID.All the other fields are no problem. They are stored in the database as I define them in the returned object. Only the
ID
is a problem.Is there a way to define the ID of the newly created User in the database manually?
Additional information
These are my nextAuthOptions:
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions