Closed peterphanouvong closed 1 month ago
The changes primarily involve modifying several handler functions (callback
, createOrg
, login
, logout
, register
) to return the result of routerClient.redirect(url)
instead of directly calling the redirect method. Additionally, the redirect
function in AppRouterClient
has been updated to use NextResponse.redirect
from next/navigation
.
Files | Change Summary |
---|---|
src/handlers/callback.js |
Modified callback function to return routerClient.redirect(postLoginRedirectURL) . |
src/handlers/createOrg.js |
Added return statement before routerClient.redirect(authUrl.toString()) in createOrg . |
src/handlers/login.js |
Modified login function to return routerClient.redirect(authUrl.toString()) . |
src/handlers/logout.js |
Modified logout function to return routerClient.redirect(authUrl.toString()) . |
src/handlers/register.js |
Added return statement before routerClient.redirect(authUrl.toString()) in register . |
src/routerClients/AppRouterClient.js |
Updated redirect function to use NextResponse.redirect from next/navigation . |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
Checklist
🛟 If you need help, consider asking for advice over in the Kinde community.