Skip to content

orionsoft/meteor-apollo-two-factor

Repository files navigation

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)

Releases

No releases published

Packages

No packages published