Next auth signin method dosen't work with Intercepting Routes #8885
Labels
bug
Something isn't working
invalid reproduction
The issue did not have a detectable valid reproduction URL
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Environment
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
Memory: 11.37 GB / 31.35 GB
Binaries:
Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.2283.0), Chromium (118.0.2088.46)
Internet Explorer: 11.0.22621.1
Reproduction URL
private repo
Describe the issue
I have a next js 13.5 with next-auth application and I have a custom login page with an Intercepted route to open the login page in a modal instead of leaving the current page if the route opened inside the application and it works fine according to next js docs https://nextjs.org/docs/app/building-your-application/routing/intercepting-routes
and everything is working fine but the problem is when I use the sign-in method from next-auth it skips the Intercepted route and opens the page but when I use
router.push()
to the sign-in link it works fine any idea why this is happening?How to reproduce
use sigin method with Intercepted route
Expected behavior
open Intercepted route instead of redirect the page
The text was updated successfully, but these errors were encountered: