fix: redirection to login page on cancelling of consent of oauth providers
Summary
Fixes #1429 This PR aims to fix the issue which is raised under #1429. To summarise the issue here, when a user selected any OAuth provider to log in but then cancels on the permission page, it was not getting redirected to the default login page. This issue was instead causing the redirection to be handled via the nextauth's default redirection mechanism since it was not able to find our own signin route. More details on the issue can be found in the issue link added above.
Changes
Added a signIn route in the pages configuration of nextAuth options.
Screenshot/Video of the fix:
https://github.com/user-attachments/assets/45723130-0298-4229-a16d-4e821d7143c3
References:
https://github.com/nextauthjs/next-auth/discussions/3682
@garvitkhandelwal is attempting to deploy a commit to the Dub Team on Vercel.
A member of the Team first needs to authorize it.
/assign
The /assign command can only be used on issues, not on pull requests.
/assign
The /assign command can only be used on issues, not on pull requests.
/assign
The /assign command can only be used on issues, not on pull requests.
The /assign command can only be used on issues, not on pull requests.
Hey @garvitkhandelwal Please update your branch , it is out-of-date with the base branch
Done
/assign
The /assign command can only be used on issues, not on pull requests.
@steven-tey apologies for tagging but is there anything I need to do to get this PR reviewed? I'm unable to get other oss.gg issues assigned to myself until this one is resolved.
@garvitkhandelwal taking a look now!
Awarding garvitkhandelwal: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/garvitkhandelwal