-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No session when fetching during SSR #97
Comments
@raggesilver could you try with See more context in nuxt/nuxt#24813 |
That works! I take it from the issue you linked this is a bug in Nuxt, right? If not, it would be good to have this in the README. Thanks |
It's not directly a bug but something we can improve in Nuxt for the long term. Would you be happy to help me improve this readme to explain the usage of |
For sure! I'll open a PR tomorrow. |
I've noticed that
$fetch
ing during SSR results in a 401 when callinggetUserSession/requireUserSession
in the server.GitHub setup:
API route setup:
Use in component:
No error is thrown in the client, and the data is fetched correctly. Erros on the server are only printed once (during SSR). Am I doing something wrong?
Package versions
Full repo.
The text was updated successfully, but these errors were encountered: