Skip to content

Conversation

dblythy
Copy link
Member

@dblythy dblythy commented Dec 6, 2020

Hi,

Here is my first attempt at coding the MFA for the JS SDK. This is a draft as it points to this PR in package.json instead of master.

New methods:

  • user.enableMfa(): Creates a MFA secret to be added to TPA app.
  • user.verifyMfa(token): Verify the token has been added correctly to the TPA app.

After MFA has been activated:

  • Parse.User.logIn('parse', 'mypass', { token });: login to an account that has MFA enabled with a valid token from a TPA app
  • Parse.User.logIn('parse', 'mypass', { recoveryKeys });: login to an account that has MFA enabled with a valid recovery keys. Logs in and resets MFA for that account.

My first PR to this repo so pls let me know if I've misunderstood the code structure. Cheers.

@dblythy dblythy closed this Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant