Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Not null constraint failed on users_verification_tokens.id #41

Open
Labels
bugSomething isn't working status: verifiedIf an issue has been reproduced
@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working status: verifiedIf an issue has been reproduced

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /