-
Notifications
You must be signed in to change notification settings - Fork 10
Open
@OrdinaryJellyfish
Description
Plugin version
0.8.3
Payload version
3.52.0
Auth.js version
5.0.0-beta.29
Describe the bug
When attempting to sign in via magic link, the front-end shows that there was an error and the logs show:
[auth][error] AdapterError: Read more at https://errors.authjs.dev#adaptererror
[auth][cause]: Error: NOT NULL constraint failed: users_verification_tokens.id
The email sends successfully, but the link does not work because the token was not stored properly for some reason. The token does generate successfully and is shown in the link inside the email. Not sure why this is happening. Thought this might be related to #2 since it is a new user but the user is created fine, as is the token.
To Reproduce
Configure an email provider (I'm using Resend) and attempt to sign in. An error will show after signing in but the email will send.
Additional context / Screenshots
No response