Closed raggesilver closed 5 months ago
@raggesilver could you try with useRequestFest()
instead?
See more context in https://github.com/nuxt/nuxt/issues/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 useRequestFetch()
for this module?
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
``` nuxt-auth-utils@0.0.25 nuxt@3.11.2 nitropack@2.9.6 h3@1.11.1 node: v21.7.3 ```Full repo.