#Fail redirect with callbackUrl next-auth
8 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
it's inside the url so your app knows where to redirect the person after a sign in response. It shows where the user comes from to redirect him back after everything is done
But it didn't work, url change from http://localhost:3000 to http://localhost:3000/?callbackUrl=https%3A%2F%2F127.0.0.1%3A3000%2Fdashboard but page stay at SignIn Page.
Any suggestions, please?
if you don't use the pre build site from next-auth, you need to handle the callback url yourself. You can get it clientside by using useSearchParams and then redirect with the router to the specific url
This question has been marked as answered! If you have any other questions, feel free to create another post
[Click here](#1295571848091799635 message)
It solved my problem, thanks a lot.
Happy to help