devbaji / vue3-google-login

Add Sign In With Google feature to your Vue 3 application
https://github.com/devbaji/vue3-google-login/
MIT License
202 stars 30 forks source link

Can I use this with vuex? #63

Closed koromkorom closed 1 month ago

koromkorom commented 1 month ago

Hi,

is there a way to use this with vuex?

I think it comes down to passing something to userIsAuthenticated parameter of createStore.

A minimal example would be amazing.

Thank you!

devbaji commented 1 month ago

Hi @koromkorom this is just a wrapper plugin which only intended to add the google login button, rest of the logics, like setting if user logged in in vuex/pinia store must be done by your side once you catches a successful login inside the callback.