Skip to content

Commit 5560911

Browse files
authored
Merge branch 'Feat/workflow-docs' into Feat/wf-doc-pic
2 parents a52424c + dc281bc commit 5560911

16 files changed

+43
-41
lines changed

src/content/docs/workflows/about-workflows/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Currently, you can use the following triggers:
1818
- [user:post_authentication](/workflows/example-workflows/workflow-user-post-auth/) fires after the user has completed single factor authentication (e.g. email + password or Google), and before authorization.
1919
- [m2m:token_generation](/workflows/example-workflows/m2m-token-generation-workflow/) - when a request to the token endpoint is made with an M2M application.
2020
- [user:new_password_provided](/workflows/example-workflows/new-password-provided-workflow/) - when a user requests to create or reset a password.
21-
- [user:existing_password_provided](http://localhost:4321/workflows/example-workflows/existing-password-provided-workflow/) - when a user hasn’t signed in, but they have requested to sign in and given their current password.
22-
- [user:tokens_generation](/workflows/example-workflows/user-token-generation/) - An ID or access token is generated after authentication or refresh token request.
23-
- [user:pre_mfa](http://localhost:4321/workflows/example-workflows/pre-mfa-workflow/) - where the user has completed single factor authentication (e.g. email + password or Google) and determined which organization (if any) they are trying to access. This trigger is only available to customers on a Kinde Scale plan.
21+
- [user:existing_password_provided](/workflows/example-workflows/existing-password-provided-workflow/) - when a user hasn’t signed in, but they have requested to sign in and given their current password.
22+
- [user:token_generation](/workflows/example-workflows/user-token-generation/) - An ID or access token is generated after authentication or refresh token request.
23+
- [user:pre_mfa](/workflows/example-workflows/pre-mfa-workflow/) - where the user has completed single factor authentication (e.g. email + password or Google) and determined which organization (if any) they are trying to access. This trigger is only available to customers on a Kinde Scale plan.
2424

2525
We will add more triggers (and allow you to create your own) as we develop the feature.
2626

src/content/docs/workflows/bindings/access-token-binding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ relatedArticles:
88
- 5917da0f-24f0-48df-a387-aca03ce1fe7a
99
---
1010

11-
The `kinde.accessToken` binding lets you modify access tokens for the current user. Custom claims you add will be included in the access token returned to the client.
11+
The `kinde.accessToken` binding lets you modify access tokens for the current user. When you add custom claims, they are included in the access token returned to the client.
1212

1313
## Methods
1414

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ relatedArticles:
88
- 5917da0f-24f0-48df-a387-aca03ce1fe7a
99
---
1010

11-
The `kinde.auth` binding lets affect the auth flow.
11+
The `kinde.auth` binding affects the auth flow.
1212

1313
## Methods
1414

1515
### `denyAccess(reason: string): void`
1616

17-
Prevent the user from accessing the application
17+
Prevent the user from accessing the application.
1818

1919
## Available in workflows
2020

2121
- [user:post_authentication](/workflows/example-workflows/workflow-user-post-auth/)
2222
- [user:new_password_provided](/workflows/example-workflows/new-password-provided-workflow/)
23-
- [user:existing_password_provided](http://localhost:4321/workflows/example-workflows/existing-password-provided-workflow/)
23+
- [user:existing_password_provided](/workflows/example-workflows/existing-password-provided-workflow/)
2424
- [user:tokens_generation](/workflows/example-workflows/user-token-generation/)
25-
- [user:pre_mfa](http://localhost:4321/workflows/example-workflows/pre-mfa-workflow/)
25+
- [user:pre_mfa](/workflows/example-workflows/pre-mfa-workflow/)
2626

2727
## Configuration
2828

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Secret variables will be redacted in the logs.
2424
- [user:post_authentication](/workflows/example-workflows/workflow-user-post-auth/)
2525
- [m2m:token_generation](/workflows/example-workflows/m2m-token-generation-workflow/)
2626
- [user:new_password_provided](/workflows/example-workflows/new-password-provided-workflow/)
27-
- [user:existing_password_provided](http://localhost:4321/workflows/example-workflows/existing-password-provided-workflow/)
27+
- [user:existing_password_provided](/workflows/example-workflows/existing-password-provided-workflow/)
2828
- [user:tokens_generation](/workflows/example-workflows/user-token-generation/)
29-
- [user:pre_mfa](http://localhost:4321/workflows/example-workflows/pre-mfa-workflow/)
29+
- [user:pre_mfa](/workflows/example-workflows/pre-mfa-workflow/)
3030

3131
## Configuration
3232

@@ -44,7 +44,7 @@ export const workflowSettings = {
4444
The [Kinde infrastructure library](https://github.com/kinde-oss/infrastructure) provides type-safe environment variable access:
4545

4646
```js
47-
import {getEnvironmentVariable} from "@kinde-oss/infrastructure";
47+
import {getEnvironmentVariable} from "@kinde/infrastructure";
4848

4949
const myVar = getEnvironmentVariable("MY_VAR")?.value;
5050
```

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ relatedArticles:
88
- 5917da0f-24f0-48df-a387-aca03ce1fe7a
99
---
1010

11-
The `kinde.fetch` binding allows you to make external API calls including the Kinde management API.
11+
The `kinde.fetch` binding allows you to make external API calls including to the Kinde Management API.
1212

1313
If you are passing sensitive data we recommend you instead use [kinde.secureFetch](/workflows/bindings/secure-fetch-binding/) where the POST body is encrypted.
1414

@@ -17,9 +17,9 @@ If you are passing sensitive data we recommend you instead use [kinde.secureFetc
1717
- [user:post_authentication](/workflows/example-workflows/workflow-user-post-auth/)
1818
- [m2m:token_generation](/workflows/example-workflows/m2m-token-generation-workflow/)
1919
- [user:new_password_provided](/workflows/example-workflows/new-password-provided-workflow/)
20-
- [user:existing_password_provided](http://localhost:4321/workflows/example-workflows/existing-password-provided-workflow/)
20+
- [user:existing_password_provided](/workflows/example-workflows/existing-password-provided-workflow/)
2121
- [user:tokens_generation](/workflows/example-workflows/user-token-generation/)
22-
- [user:pre_mfa](http://localhost:4321/workflows/example-workflows/pre-mfa-workflow/)
22+
- [user:pre_mfa](/workflows/example-workflows/pre-mfa-workflow/)
2323

2424
## Configuration
2525

@@ -39,7 +39,7 @@ The [Kinde infrastructure library](https://github.com/kinde-oss/infrastructure)
3939
Note: you will also need the [url](/workflows/bindings/url-binding/) binding enabled for the workflow as this is used under the hood.
4040

4141
```js
42-
import {fetch} from "@kinde-oss/infrastructure";
42+
import {fetch} from "@kinde/infrastructure";
4343

4444
export default async function Workflow(event) {
4545
const {data: ipDetails} = await fetch(

src/content/docs/workflows/bindings/id-token-binding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ relatedArticles:
88
- 5917da0f-24f0-48df-a387-aca03ce1fe7a
99
---
1010

11-
The `kinde.idToken` binding lets you modify ID tokens for the current user. Custom claims you add will be included in the ID token returned to the client.
11+
The `kinde.idToken` binding lets you modify ID tokens for the current user. When you add custom claims, these are included in the ID token returned to the client.
1212

1313
## Methods
1414

src/content/docs/workflows/bindings/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Bindings allow your workflow code to interact with resources within the Kinde in
1313

1414
## Available bindings
1515

16-
The following bindings available today, but may only be available within certain workflow contexts. You'll need to check the documenation for each workflow trigger to see which bindings are available to it.
16+
The following bindings are available. Only some are available within specific workflow contexts. Check the documentation to confirm which bindings are available for each workflow trigger.
1717

1818
### Kinde specific bindings:
1919

@@ -23,7 +23,7 @@ The following bindings available today, but may only be available within certain
2323
- [kinde.fetch](/workflows/bindings/fetch-binding/)
2424
- [kinde.idToken](/workflows/bindings/id-token-binding/)
2525
- [kinde.m2mToken](/workflows/bindings/m2m-token-binding/)
26-
- [kinde.mfa](/workflows/bindings/mfa-token-binding/)
26+
- [kinde.mfa](/workflows/bindings/mfa-binding/)
2727
- [kinde.secureFetch](/workflows/bindings/secure-fetch-binding/)
2828

2929
### Native bindings

src/content/docs/workflows/bindings/m2m-token-binding.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ relatedArticles:
88
- 5917da0f-24f0-48df-a387-aca03ce1fe7a
99
---
1010

11-
The `kinde.m2mToken` binding lets you modify M2M (machine-to-machine) tokens. Custom claims you add will be included in the M2M token returned to the client.
11+
The `kinde.m2mToken` binding lets you modify M2M (machine-to-machine) tokens. When you add custom claims, these are included in the M2M token returned to the client.
1212

1313
## Methods
1414

1515
### `setCustomClaim(name: string, value: any): void`
1616

17-
Adds a custom claim to the M2M token. The claim will be available when the token is returned to the client.
17+
Adds a custom claim to the M2M token. The claim is available when the token is returned to the client.
1818

1919
## Available in workflows
2020

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ relatedArticles:
88
- 5917da0f-24f0-48df-a387-aca03ce1fe7a
99
---
1010

11-
The `kinde.mfa` binding lets carry out MFA related operations
11+
The `kinde.mfa` binding lets you perform MFA-related operations.
1212

1313
## Methods
1414

@@ -18,7 +18,7 @@ Allows you to set the MFA enforcement policy for the user for the current auth f
1818

1919
## Available in workflows
2020

21-
- [user:pre_mfa](http://localhost:4321/workflows/example-workflows/pre-mfa-workflow/)
21+
- [user:pre_mfa](/workflows/example-workflows/pre-mfa-workflow/)
2222

2323
## Configuration
2424

src/content/docs/workflows/bindings/secure-fetch-binding.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ relatedArticles:
99
- 3f0159e8-17dd-4adb-ab12-ab53c901cf83
1010
---
1111

12-
The `kinde.secureFetch` binding allows you to make POST requests to external APIs where the payload is encrypted with the [workflow encryption key](/workflows/manage-workflows/workflow-encryption-key/) you have previously set up in Kinde.
12+
The `kinde.secureFetch` binding allows you to make POST requests to external APIs where the payload is encrypted with the [workflow encryption key](/workflows/manage-workflows/workflow-encryption-key/) you've previously set up in Kinde.
1313

1414
## Available in workflows
1515

1616
- [user:post_authentication](/workflows/example-workflows/workflow-user-post-auth/)
1717
- [m2m:token_generation](/workflows/example-workflows/m2m-token-generation-workflow/)
1818
- [user:new_password_provided](/workflows/example-workflows/new-password-provided-workflow/)
19-
- [user:existing_password_provided](http://localhost:4321/workflows/example-workflows/existing-password-provided-workflow/)
19+
- [user:existing_password_provided](/workflows/example-workflows/existing-password-provided-workflow/)
2020
- [user:tokens_generation](/workflows/example-workflows/user-token-generation/)
21-
- [user:pre_mfa](http://localhost:4321/workflows/example-workflows/pre-mfa-workflow/)
21+
- [user:pre_mfa](/workflows/example-workflows/pre-mfa-workflow/)
2222

2323
## Configuration
2424

@@ -38,7 +38,7 @@ The [Kinde infrastructure library](https://github.com/kinde-oss/infrastructure)
3838
Note: you will also need the [url](/workflows/bindings/url-binding/) binding enabled for the workflow as this is used under the hood.
3939

4040
```js
41-
import {fetch} from "@kinde-oss/infrastructure";
41+
import {fetch} from "@kinde/infrastructure";
4242

4343
export default async function Workflow(event) {
4444
const {data} = await secureFetch(`https://api.somethingsecret.com/api`, {

0 commit comments

Comments
 (0)