@simpleview/sv-auth-client 6.22.0 → 6.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleview/sv-auth-client",
3
- "version": "6.22.0",
3
+ "version": "6.23.0",
4
4
  "description": "Client for communicating with sv-auth",
5
5
  "author": "Owen Allen <owenallenaz@gmail.com>",
6
6
  "dependencies": {
@@ -459,6 +459,29 @@ class AuthPrefix {
459
459
  return result.auth.verify_mfa_code;
460
460
  }
461
461
 
462
+ enable_mfa({ input, fields, context }) {
463
+ context = context || this._graphServer.context;
464
+
465
+ return query({
466
+ query : `
467
+ mutation($input: auth_enable_mfa_input!) {
468
+ auth {
469
+ enable_mfa(input: $input) {
470
+ ${fields}
471
+ }
472
+ }
473
+ }
474
+ `,
475
+ variables : {
476
+ input
477
+ },
478
+ url : this._graphUrl,
479
+ token : context.token,
480
+ key: "auth.enable_mfa",
481
+ clean: true
482
+ });
483
+ }
484
+
462
485
  async send_email_mfa_code({ input, fields }) {
463
486
  const result = await query({
464
487
  query : `