I can't get token with getToken({req}) #4129
-
Question 💬Hi, I can't get the token with getToken: This variables are ok: How to reproduce ☕️[...nextauth].js
API section:
Contributing 🙌🏽No, I am afraid I cannot help regarding this |
Beta Was this translation helpful? Give feedback.
Answered by
balazsorban44
Mar 5, 2022
Replies: 1 comment 1 reply
-
From the error stack, it looks like you are trying to use an API Route handler on a non-API Route (pages/dashboard). Please see: https://nextjs.org/docs/api-routes/introduction |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
balazsorban44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the error stack, it looks like you are trying to use an API Route handler on a non-API Route (pages/dashboard).
Please see: https://nextjs.org/docs/api-routes/introduction