Middleware Route Protection nextjs example result in Middleware relative urls error #10760
Labels
documentation
Relates to documentation
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
What is the improvement or update you wish to see?
The next-auth docs about protecting route in getting started section resulting middleware relative urls error
Is there any context that might help us understand?
NextResponse.redirect(url)
url should be absolute url i think
Does the docs page already exist? Please link to it.
https://authjs.dev/getting-started/session-management/protecting
The text was updated successfully, but these errors were encountered: