File tree Expand file tree Collapse file tree 3 files changed +40
-3
lines changed
src/content/docs/workflows Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,41 @@ The `kinde.mfa` binding lets you perform MFA-related operations.
31
31
32
32
## Methods
33
33
34
- ### `
34
+ ### ` setEnforcementPolicy(policy: 'required' | 'skip'): void `
35
+
36
+ Allows you to set the MFA enforcement policy for the user for the current auth flow. The policy can be either ` required ` or ` skip ` .
37
+
38
+ ## Available in workflows
39
+
40
+ - [ user:pre_mfa] ( /workflows/example-workflows/pre-mfa-workflow/ )
41
+
42
+ ## Configuration
43
+
44
+ ``` js
45
+ export const workflowSettings = {
46
+ // ...other settings
47
+ bindings: {" kinde.mfa" : {}}
48
+ };
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ ### Using the Kinde infrastructure library (recommended)
54
+
55
+ The [ Kinde infrastructure library] ( https://github.com/kinde-oss/infrastructure ) provides type-safe helper to set the policy:
56
+
57
+ ``` js
58
+ import {setEnforcementPolicy } from " @kinde/infrastructure" ;
59
+
60
+ export default async function (event ) {
61
+ setEnforcementPolicy (" required" );
62
+ }
63
+ ```
64
+
65
+ ### Using the low-level API
66
+
67
+ If you're not using the infrastructure library, you can call the underlying API directly:
68
+
69
+ ``` js
70
+ kinde .mfa .setEnforcementPolicy (" required" );
71
+ ```
Original file line number Diff line number Diff line change 1
1
---
2
- page_id : 1a48f802-8505-4de7-b97f-9589403897d1
2
+ page_id : 93dbf16b-ef93-4333-97c2-cf9dbeb05cf9
3
3
title : kinde.json
4
4
sidebar :
5
5
order : 4
Original file line number Diff line number Diff line change 1
1
---
2
- page_id : 5917da0f-24f0-48df-a387-aca03ce1fe7a
2
+ page_id : e35c5b5f-f6bc-4105-92ad-de528b50ca08
3
3
title : Workflow build logs
4
4
sidebar :
5
5
order : 1
You can’t perform that action at this time.
0 commit comments