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
There is pretty good documentation for the nextjs pages router, but I think the documentation around the app router could really use some love. It is after all going to be way more popular going forward as it is the recommended way to build apps.
Describe the ideal solution
I would love to know more examples of how to customize the auth handler. I am specifically lookfing for how I can set the returnTo parameter dynamically for the various routes, so I can pass it in from the caller via the url params
Alternatives and current workarounds
The current version actually seems to work by using the examples in the old pages router, but it actually is using the wrong types (NextRequest vs NextApiRequest)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Checklist
Describe the problem you'd like to have solved
There is pretty good documentation for the nextjs pages router, but I think the documentation around the app router could really use some love. It is after all going to be way more popular going forward as it is the recommended way to build apps.
Describe the ideal solution
I would love to know more examples of how to customize the auth handler. I am specifically lookfing for how I can set the returnTo parameter dynamically for the various routes, so I can pass it in from the caller via the url params
Alternatives and current workarounds
The current version actually seems to work by using the examples in the old pages router, but it actually is using the wrong types (NextRequest vs NextApiRequest)
Additional context
No response
The text was updated successfully, but these errors were encountered: