You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up a custom OAuth provider with Authjs. In nuxt.config.ts I have set this as defaultProvider and activated the globalAppMiddleware.
Now I would have expected that when I opened the Nuxt app, I would automatically be redirected to the login page of my OAuth provider. This also fits with the following statement from the documentation: “Setting this here will also affect the global middleware behavior. For instance, when you set it to github and the user is unauthorized, they will be directly forwarded to the Github OAuth page instead of seeing the app-login page”.
However, there is a redirect to /api/auth/signin, where I first have to click a sign in button. Since I have only defined this one provider, I would of course like to skip this step and be redirected directly to the login page of my provider.
There seems to have been the same error before, but without a helpful solution: #531
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
How do I check the CSRF token? I'm not really familiar with next-auth unfortunately. However, I did not set anything out of the ordinary and strictly followed the instructions in the documentation.
Environment
Reproduction
https://github.com/tschni/sidebase-nuxt-auth-default-provider-issue
Describe the bug
I have set up a custom OAuth provider with Authjs. In
nuxt.config.ts
I have set this as defaultProvider and activated the globalAppMiddleware.Now I would have expected that when I opened the Nuxt app, I would automatically be redirected to the login page of my OAuth provider. This also fits with the following statement from the documentation: “Setting this here will also affect the global middleware behavior. For instance, when you set it to github and the user is unauthorized, they will be directly forwarded to the Github OAuth page instead of seeing the app-login page”.
However, there is a redirect to
/api/auth/signin
, where I first have to click a sign in button. Since I have only defined this one provider, I would of course like to skip this step and be redirected directly to the login page of my provider.There seems to have been the same error before, but without a helpful solution: #531
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: