Skip to content

Prevent new connection on existing account if email address does not match up #52

@Wiejeben

Description

@Wiejeben

What are you trying to do?

Like the title says. Our users are able to connect other social accounts to their signed in account but because the email address does not match up if they later try to sign in with that social account it ends up registrering a new user. I'd like to prevent this.

What's your proposed solution?

Before login should matchup the email address to the current user and prevent the creation of the new connection based on that condition. Of course this should be a preference.

Additional context

I've been trying to do this with event however not all the relevant information is provided until beforeLogin. For now I'm matching the email address in there and deleting the just created connection immediately.

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