Skip to content

loginWith/Login returning user object in promise #249

@zyxep

Description

@zyxep

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions