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

Concept: MFA draft #1271

Closed
wants to merge 1 commit into from
Closed

Concept: MFA draft #1271

wants to merge 1 commit into from

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