Stream response handle with useSanctumFetch #338
-
Hi, Is it possible to handle stream responses with useSanctumFetch, because it seems it does not work. It works with the simple fetch api. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hey @szana8 , could you provide a code sample? This composable is just a wrapper for |
Beta Was this translation helpful? Give feedback.
-
What do you think this stream option should work with this package or am I miss something? |
Beta Was this translation helpful? Give feedback.
I double-checked the
ofetch
functionality, and indeed, it supports Stream Response / Server Sent Events. However, there was a slight limitation on the module side, which I fixed in #347.You can use
nuxt-auth-sanctum
for streams since version0.6.3
.P.S.
Please check the PR description for the example of usage