magic-admin-js icon indicating copy to clipboard operation
magic-admin-js copied to clipboard

Ability to programmatically log in user?

Open heymartinadams opened this issue 4 years ago • 0 comments

✅ Prerequisites

  • [x] Did you perform a cursory search of open issues? Is this question already asked elsewhere?
  • [x] Are you reporting to the correct repository (@magic-sdk/admin)?

❓ Question

Some users have different email addresses they use to log in (say, one email for authentication via email, another email for authentication via Google). This creates issues if one account is marked as “paid” but not the other, for example. So I’m adding a logic into the backend that lets me combine accounts.

So my question is: can I programmatically log in a user using a specific email address in the backend, once I discover that the user is attempting to sign in with the other email address?

🌎 Environment

Software Version(s)
@magic-sdk/admin 1.3.0
Node 16.10.0
yarn 1.22.15
Operating System macOS 12.0 beta

heymartinadams avatar Oct 10 '21 18:10 heymartinadams