Update Edge Compatibility section for Middleware #10821
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 middleware section in the migrating to v5 page does not let the user know that you cannot access the authenticated user through the middleware if using the database. It currently reads as if making the relevant changes will be a successful workaround for all usecases, when instead it merely just allows the user to use the database adapter in other parts of the applicatoin except the middleware completely.
Is there any context that might help us understand?
Inform the user that following this process to remove any Edge Runtime errors in the middleware will result in no database access in the middleware, resulting in no ability to protect resources in the middleware level, only on each individual page.
Does the docs page already exist? Please link to it.
https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility
The text was updated successfully, but these errors were encountered: