#Need help trying to migrate my authentication from Vue 3 to Nuxt 3

2 messages · Page 1 of 1 (latest)

final dock
#

I hoped it'd collapse the second code snippet, but whatever

#

these are the problems I am currently facing:

  1. I cannot find a non-hacky way to add interceptors to the ofetch that Nuxt3 uses
  2. right now I have the refresh token stored in the localStorage which gives me problems accessing it during SSR
  3. I think I read somewhere that I should not use vue ref/reactive composables outside of components so this is probably not a valid way to store state in Nuxt 3