Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loginWith/Login returning user object in promise #249

Closed
zyxep opened this issue Sep 27, 2018 · 0 comments · Fixed by #541
Closed

loginWith/Login returning user object in promise #249

zyxep opened this issue Sep 27, 2018 · 0 comments · Fixed by #541

Comments

@zyxep
Copy link

zyxep commented Sep 27, 2018

What problem does this feature solve?

This would make it easy for devs to create the user in their own data store in e.g.
.then({ })
and errors in .catch({ })

so that means i should be able to do something like:

this.$auth.loginWith('facebook').then({
// Create the user in my own data store, e.g. MySQL etc.
}).catch({
// If the user creation fails in own data store, remove the data in vuex
await this.$auth.logout()
})
This feature request is available on Nuxt community (#c206)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants