diff --git a/addon/authenticators/fleetbase.js b/addon/authenticators/fleetbase.js index 4b8a50b..98bd5b4 100644 --- a/addon/authenticators/fleetbase.js +++ b/addon/authenticators/fleetbase.js @@ -59,6 +59,12 @@ export default class FleetbaseAuthenticator extends Base { }); } + checkForTwoFactor(identity) { + return this.fetch.get('two-fa/check', { identity }).catch((error) => { + throw new Error(error.message); + }); + } + /** * Invalidates the current session *