newbeea / nuxt3-apollo-module

33 stars 8 forks source link

On Login helper #1

Closed capoia closed 2 years ago

capoia commented 2 years ago

Hello, can we set the token for future requests after logging in? In vue2 version there was $apollohelpers.onlogin() If don`t how i add bearer token before request?

capoia commented 2 years ago

@newbeea any idea?

newbeea commented 2 years ago

I see ... I will add this feature later

newbeea commented 2 years ago

Hello, can we set the token for future requests after logging in? In vue2 version there was $apollohelpers.onlogin() If don`t how i add bearer token before request?

I published a new version 0.1.0 to support authentication, you could check README.md doc. Here is example nuxt3-apollo-starter

newbeea commented 2 years ago

Does 0.1.0 help? @capoia can I close this issue

capoia commented 2 years ago

Yes! thank you!