feature: Support login with multiple auth providers in the same session. #1604
Replies: 5 comments
-
Any updates here? Is this posible? |
Beta Was this translation helpful? Give feedback.
-
@dalexhd Does your application have a backend? If so, you could:
|
Beta Was this translation helpful? Give feedback.
-
@StanleyMasinde Yes my application has a backend. I know that a user can sign in with multiple providers, and I only would need to check if that email has been registered before or not... The main feature that I would like to have is this: // A user has loggedin using twitter, so I would need to use this in order to get related twitter data:
this.$auth.user('twitter')
// Also the previous user has loggedin with spotify. So I would need to save 2 session on my vuex instance, Twitter and spotify.
this.$store.state.auth.user('spotify') // Get spotify related data
this.$store.state.auth.user('twitter') // Get twitter related data I've taken current documentation and modified it in order to support this feature: AuthThis module globally injects propertiesAll properties are reactive. Meaning that you can safely use them in Vue template
|
Beta Was this translation helpful? Give feedback.
-
That's very impressive @dalexhd. I'd recommend you create a PR with these feature working because the maintenance team has s a lot to handle already. |
Beta Was this translation helpful? Give feedback.
-
What problem does this feature solve?
I want my users to be able to login with a custom provider in my application, and optionally if they want, to be able to log in with any other provider like Spotify.
In >5.0.0 version you're only able to login with a single provider. My idea is to give the availability to store multiple provider's authentication states in all the NuxtJS lifecycle.
Beta Was this translation helpful? Give feedback.
All reactions