You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi 👋
Problem Description
I'm facing an issue when trying to save the name and tenantId fields in the User table using NextAuth with PrismaAdapter and the resend provider with magic link. The goal is to save these fields when a user registers or logs in using the resend provider, but currently only the email field is being saved correctly.
Steps to Reproduce
Create a new user using the resend provider.
Check the saved fields in the User table.
Expected Behavior
The name and tenantId fields should be saved along with the email in the User table.
Current Behavior
Only the email field is being saved correctly in the User table. The name and tenantId fields are blank.
Other Information
I've tried following the steps from the official NextAuth documentation, but the name and tenantId fields are not being saved.
The configurations and code are detailed above. Any additional guidance on what might be causing this issue would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi 👋
Problem Description
I'm facing an issue when trying to save the name and tenantId fields in the User table using NextAuth with PrismaAdapter and the resend provider with magic link. The goal is to save these fields when a user registers or logs in using the resend provider, but currently only the email field is being saved correctly.
Steps to Reproduce
Create a new user using the resend provider.
Check the saved fields in the User table.
Expected Behavior
The name and tenantId fields should be saved along with the email in the User table.
Current Behavior
Only the email field is being saved correctly in the User table. The name and tenantId fields are blank.
Relevant Code
HandleSaveClick Component:
NextAuth Configuration:
SendVerificationRequest Function:
User Schema:
Next js version: 13.4.1
Prisma version: 5.1.1
NextAuth version: 4.22.1
Resend version: 1.0.0
Other Information
I've tried following the steps from the official NextAuth documentation, but the name and tenantId fields are not being saved.
The configurations and code are detailed above. Any additional guidance on what might be causing this issue would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions