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 tried to make basic Github provider new next js project and added a middleware.ts. The thing is, if i'm not logged in, it redirects me to http://localhost:3000/api/auth/signin?callbackUrl=%2F and there, i can see a button to login via github. What I want, is to make it to automatically press that button without making a custom login page, how can i do that? is there next auth option for that or a middleware change I can do?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried to make basic Github provider new next js project and added a middleware.ts. The thing is, if i'm not logged in, it redirects me to http://localhost:3000/api/auth/signin?callbackUrl=%2F and there, i can see a button to login via github. What I want, is to make it to automatically press that button without making a custom login page, how can i do that? is there next auth option for that or a middleware change I can do?
Beta Was this translation helpful? Give feedback.
All reactions