When rendering on the server the session is not eagerly loaded when the authenticated middleware runs, causing it to think the user is not logged in. Fix by awaiting the session composable. |
||
---|---|---|
.. | ||
authenticated.ts |
When rendering on the server the session is not eagerly loaded when the authenticated middleware runs, causing it to think the user is not logged in. Fix by awaiting the session composable. |
||
---|---|---|
.. | ||
authenticated.ts |