Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 411 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 411 Bytes

Two Factor Auth For Meteor

meteor add orionsoft:meteor-apollo-two-factor
yarn add speakeasy qr-image

Only thing you have to do is set the options in meteor settings:

{
  "twoFactor": {
    "issuer": "My App Name",
    "forceLogin": true
  }
}

To manually validate

import {validateTwoFactor} from 'meteor/orionsoft:meteor-apollo-two-factor'

validateTwoFactor(user, token)