Refreshing `access_token` on SSR does not work
I've done a plugin/composable based on this doc: https://nuxt.com/docs/guide/recipes/custom-usefetch
My composable
useCustomFetch
is exactly the same as the doc.
And here is my customized plugin:
Everything is working quite well on CSR, but when I try to refresh my access_token
from SSR I have an error that I can't resolveNuxt
Custom useFetch in Nuxt · Recipes
How to create a custom fetcher for calling your external API in Nuxt 3.
1 Reply
Here is my pinia auth.ts (with
refreshAccessToken
function)