Closed xlanex6 closed 1 year ago
I start a new repo base https://github.com/xlanex6/nuxt-nhost
Salut Alex,
We are foreseeing to create a Vue3 package in the upcoming weeks, to have both a Vue3 sdk and a Nuxt3 module would really be awesome!
I'm moving this issue to our main nhost/nhost
repository. For your information we are moving all our JS/TS tooling in this monorepo, so this is where is will end up eventually.
As a starting point, I would have a look at our NextJs implementation - both in the source code and in our documentation. One main thing to keep in mind is that hasura-auth does not support cookies, so the cookie will be shared with Nuxt client and server, but not hasura-auth. In the meantime, both client and server should be able to refresh the token, while updating the refresh token as a cookie.
The initiation of the authentication state, which is based on xstate, should be less cumbersome as in React/Next, and we plan to get our inspiration from @apollo/vue@4
on how to plug the Nhost client into a Vue app.
Don't hesitate to DM me in Discord if you want to further discuss about this
Salut @plmercereau 🇧🇪 🇫🇷
I go the point with cookie refresh on bot side ( client +server ) without using hasura-auth
thanks for use NUXT 3 got useCookie
, good point for us.
Repo:
https://github.com/xlanex6/nuxt-nhost
I made a basic Todo
I still learning a lot,
Thanks
One main thing to keep in mind is that hasura-auth does not support cookies, so the cookie will be shared with Nuxt client and server, but not hasura-auth. In the meantime, both client and server should be able to refresh the token, while updating the refresh token as a cookie.
@plmercereau why is this not on hasura-auth ? And is this still the case in July
Hey at all,
here you can find a ready to use Nuxt 3 module: https://github.com/maximilian-schwarz/nhost-nuxt3-plugin
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I want to create a Nuxt3 module base on nhost Js client to use it in Nuxt 3.
User ( session, cookie etc ) Graphql ( query + mutation ) Storage Functions
I'm not expert, but ready to learn and sweat to do so Someone is already work on it ? can I join ?
@elitan @plmercereau are you open to this suggestion ?