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
3.See the view /dashboard, and the URL /login?callbackUrl=https%3A%2F%2Fpractice-nextjs-three-ruddy.vercel.app%2Fdashboard ,
4.Try click in the SignOut Button, it don't work, because the URL is not correct
5.If you reload the page, Now, you can see the /dashboard view and the /dashboard url.
6.And, now try click the SignOut Button, now it works
Expected behavior
When I login, the URL must change to the correct URL in this example /dashboard
The text was updated successfully, but these errors were encountered:
TDanyStark
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Dec 11, 2024
Environment
Reproduction URL
https://github.com/TDanyStark/practice-nextjs/blob/b103cb45cb09d42f04c8c67013e33ebf012d6336/auth.config.ts#L5
Describe the issue
Describe the issue
I followed the next.js guide
https://nextjs.org/learn/dashboard-app/adding-authentication
when I try to access /dashboard the middleware redirects to
https://practice-nextjs-three-ruddy.vercel.app/login?callbackUrl=https%3A%2F%2Fpractice-nextjs-three-ruddy.vercel.app%2Fdashboard
for now, the expected behavior
then I login with email and password (credentials) my app redirects to the view /dashboard, However, I still see in the URL
https://practice-nextjs-three-ruddy.vercel.app/login?callbackUrl=https%3A%2F%2Fpractice-nextjs-three-ruddy.vercel.app%2Fdashboard
How to reproduce
1.try to access to the protected route
https://practice-nextjs-three-ruddy.vercel.app/dashboard
2.Login with
Email: [email protected]
Password: 123456
3.See the view /dashboard, and the URL /login?callbackUrl=https%3A%2F%2Fpractice-nextjs-three-ruddy.vercel.app%2Fdashboard ,
4.Try click in the SignOut Button, it don't work, because the URL is not correct
5.If you reload the page, Now, you can see the /dashboard view and the /dashboard url.
6.And, now try click the SignOut Button, now it works
Expected behavior
When I login, the URL must change to the correct URL in this example /dashboard
The text was updated successfully, but these errors were encountered: