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

i can't find any next_auth verification token #1177

Closed
y-71 opened this issue Sep 15, 2023 · 4 comments
Closed

i can't find any next_auth verification token #1177

y-71 opened this issue Sep 15, 2023 · 4 comments
Labels
bug Something isn't working needs-triage

Comments

@y-71
Copy link
Contributor

y-71 commented Sep 15, 2023

Describe the bug

when using nextauth with the xata adapter, i can't find any next_auth verification token on the table,

I've followed the xata adapter docs for nextauth https://authjs.dev/reference/adapter/xata

Expected behavior
next_auth verification token

Software version

(base) ➜  ~ xata --version
@xata.io/cli/0.13.4 darwin-arm64 node-v18.14.0
"dependencies": {
    "@next-auth/xata-adapter": "^0.2.2",
    "@t3-oss/env-nextjs": "^0.3.1",
    "@xata.io/client": "^0.25.2",
    "next": "^13.4.2",
    "next-auth": "^4.22.4",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "zod": "^3.21.4"
  },

Additional context

Screenshot 2023-09-15 at 18 29 04 Screenshot 2023-09-15 at 18 30 43
@y-71 y-71 added the bug Something isn't working label Sep 15, 2023
@y-71 y-71 changed the title i can't find any next_auth verification token i can't find any next_auth verification token Sep 15, 2023
@alexfrancoeur
Copy link

@SferaDev when you have a moment, any chance you could dig into this? It looks like our adapter may be broken.

@y-71
Copy link
Contributor Author

y-71 commented Sep 15, 2023

@alexfrancoeur is all of your product open source? i can try to file a PR for this

@y-71
Copy link
Contributor Author

y-71 commented Sep 15, 2023

@alexfrancoeur and @SferaDev i've opensourced a xata-auth sample for you to test it,

my question is, does the nextauth_verificationTokens table still make sense knowing that there is a sessionToken field in the nextauth_sessions table

i've also found this PR by @SferaDev about adding oauth and it's still on draft, i'm using google auth solely for this project at this level, not sure if it's relevant since it looks like it's just for the cli
#1122

https://github.com/y-71/xata-auth

@SferaDev
Copy link
Member

@y-71 Verification tokens are only for email sign-in to build magic links, if you are using google auth that table will always be empty. If you find any other problem feel free to open a new issue 😄

i've also found this PR by @SferaDev about adding oauth and it's still on draft, i'm using google auth solely for this project at this level, not sure if it's relevant since it looks like it's just for the cli

This is unrelated to next-auth and will add a new way to log in to the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants