Callback error in deploying static site #1764
Unanswered
iusx
asked this question in
Support Requests
Replies: 1 comment
-
Please note that I have previously set the callback address to https://github-auth-demo.pages.dev/ at https://github.com/settings/developers because I uploaded the error to github for convenience. Tested so setting returns localhost: localhost:3000 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm learning nuxt-auth recently, but I'm running into a very embarrassing problem. When I'm testing github-auth, I can run it locally (via
npm run nuxt
) and have no issues with auth or fetch.After that, when I hosted it on cloudflare and deployed it using
nuxt generate --spa
\nuxt generate
, there was a very serious problem. I don't know why After the authorization is successful, it still stays at/login
route. And did not get the user's token information, showingunauthorized
.Below, I will attach my environment screen recording and source code repository:
Correct!
Incorrect!
Source
earthrule/github-auth-demo
Notice
I have read the submitted issues, set
mode
to spa, and wrote the official document according to the official demo (please forgive my demo style, after all, it is just a learning demo, I will debug the function when I have a chance, I will show it to you again the final result)If you have encountered such a problem or have a solution, you can tell me or pr directly, I have set the address of the github app to
http://localhost:3000/
so you can debug locally.Beta Was this translation helpful? Give feedback.
All reactions