Skip to content

Commit

Permalink
added function that checks 2fa
Browse files Browse the repository at this point in the history
  • Loading branch information
TemuulenBM committed Jan 4, 2024
1 parent 7fc3994 commit 453ca63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addon/authenticators/fleetbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 453ca63

Please sign in to comment.