Skip to content
2 changes: 1 addition & 1 deletion main/docs/customize/actions/actions-npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ In your `tsconfig.json`, define any development dependencies to have intelliSens
</Tab>
</Tabs>

#### Post-Login access control and ID token custom claims
### Post-Login access control and ID token custom claims

The following example Action would execute during the Post-Login flow. It checks if the user has roles assigned, and calls `api.access.deny()` if none are found. If roles are present, it proceeds to set the custom claim on the ID token.

Expand Down
102 changes: 93 additions & 9 deletions main/docs/customize/forms/flows/integrations/auth0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -174,26 +174,110 @@ Review [Auth0 Management API](https://auth0.com/docs/api/management/v2/introduct
Send a custom email using your [configured email provider](docs/customize/email).

<Warning>
[Email Provider](/docs/customize/email) must be enabled before using this action.
[Email Provider](/docs/customize/email) must be enabled before using this Action.
</Warning>

<Frame>![](/docs/images/forms/flows/integrations/auth0-notifications-send-email.png)</Frame>

#### Input settings

| Parameter | Description |
|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Use custom sender email | By default, we will use the sender email you have configured in your customized email provider settings. Enable this option if you want to use a different sender email or name. |
| Recipient email | The recipient’s email |
| Subject | The email subject |
| Custom variable | Add custom variables to be inserted in your email template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`. |
| Message | Email message in HTML format using Liquid syntax. You can use [common variables](/docs/customize/email/email-templates/supported-liquid-syntax) or custom ones using `{{custom_vars.your_variable_key}}` syntax. |
| Parameter | Description |
|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Use custom sender email | By default, we will use the sender email you have configured in your customized email provider settings. Enable this option if you want to use a different sender email or name. |
| Recipient email | The recipient’s email |
| Custom variables | Add custom variables to be inserted in your email template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`. |
| Subject | The email subject. Supports custom variables and Liquid syntax. |
| Message | The email message is in HTML format, uses Liquid syntax, and supports custom variables. |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
Subject and Message can use a combination of Liquid syntax with [common variables](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) or custom variables using `{{custom_vars.your_variable_key}}` syntax.

Use custom variables to pass information between Forms / Flows context and Subject and Message content.
</Callout>

#### Output object

| Property | Type | Description |
|-----------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| success | Boolean | Indicates if the email was successfully queued to be sent, regardless of whether the delivery failed or not. |
| success | Boolean | Indicates if the email was successfully queued to be sent, regardless of whether the delivery failed or not. |

#### Output object example

```json
{
"success": true
}
```

### Send SMS

Send a custom SMS using your [configured phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).

<Warning>
[Phone Provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) must be enabled for text message delivery before using this Action.
</Warning>

<Frame>![](/docs/images/forms/flows/integrations/auth0-notifications-send-sms.png)</Frame>

#### Input settings

| Parameter | Description |
|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From | By default, we will use the sender phone number you have configured in your customized phone provider settings. Input a custom value if you want to use a different sender phone number. |
| To | The recipient’s phone number |
| Custom variables | Add custom variables to be inserted in your phone template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`. |
| Message | The phone message uses Liquid syntax and supports custom variables. |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
Message can use a combination of Liquid syntax with [common variables](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) or custom variables using `{{custom_vars.your_variable_key}}` syntax.

Use custom variables to pass information between Forms / Flows context and Message content.
</Callout>

#### Output object

| Property | Type | Description |
|-----------------|---------|----------------------------------------------------------------------------------------------------------------------|
| success | Boolean | Indicates if the phone message was successfully queued to be sent, regardless of whether the delivery failed or not. |

#### Output object example

```json
{
"success": true
}
```

### Make call

Send a custom voice message using your [configured phone provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers).

<Warning>
[Phone Provider](https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers) must be enabled for voice message delivery before using this Action.
</Warning>

<Frame>![](/docs/images/forms/flows/integrations/auth0-notifications-make-call.png)</Frame>

#### Input settings

| Parameter | Description |
|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From | By default, we will use the sender phone number you have configured in your customized phone provider settings. Input a custom value if you want to use a different sender phone number. |
| To | The recipient’s phone number |
| Custom variables | Add custom variables to be inserted in your phone template. Once configured, you can reference them using `{{custom_vars.your_variable_key}}`. |
| Message | The phone message uses Liquid syntax and supports custom variables. |

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
Message can use a combination of Liquid syntax with [common variables](https://auth0.com/docs/customize/email/email-templates/supported-liquid-syntax) or custom variables using `{{custom_vars.your_variable_key}}` syntax.

Use custom variables to pass information between Forms / Flows context and Message content.
</Callout>

#### Output object

| Property | Type | Description |
|-----------------|---------|----------------------------------------------------------------------------------------------------------------------|
| success | Boolean | Indicates if the phone message was successfully queued to be sent, regardless of whether the delivery failed or not. |

#### Output object example

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.