Skip to content

Commit 6684b74

Browse files
committed
Fixing duplicate page_id
1 parent b37b670 commit 6684b74

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

src/content/docs/workflows/bindings/mfa-binding.mdx

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,41 @@ The `kinde.mfa` binding lets you perform MFA-related operations.
3131

3232
## Methods
3333

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+
```

src/content/docs/workflows/configuration/kinde-json.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_id: 1a48f802-8505-4de7-b97f-9589403897d1
2+
page_id: 93dbf16b-ef93-4333-97c2-cf9dbeb05cf9
33
title: kinde.json
44
sidebar:
55
order: 4

src/content/docs/workflows/observability/workflow-build-logs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_id: 5917da0f-24f0-48df-a387-aca03ce1fe7a
2+
page_id: e35c5b5f-f6bc-4105-92ad-de528b50ca08
33
title: Workflow build logs
44
sidebar:
55
order: 1

0 commit comments

Comments
 (0)