Actions

Actions are one of the building blocks of Descope flows, enabling you to perform specific tasks during user authentication journeys. They can be combined with screens and conditions to create complex authentication workflows.

An action step in a flow can perform various tasks, such as initiating and completing authentication (e.g., social login, passkeys, or magic link verification), updating user information, creating tenants, associating roles, and much more.

Adding Actions to Flows

To add an action within your flow, within the console flow builder, click the blue + at the top left, and select Action.

Add an action to your Descope flow

You can then select the action you want to add or search for the action you're looking for. Once selected, you can drag the action into your flow. You can then move it around, configure it, and connect it to other actions, screens, and conditions.

Selecting an action to add to your Descope flow

Handling Action Errors in Flows

Descope allows you to configure what to do in the event of an action error during flow execution. You can select any action within your flow, expand the error handling area, and configure the handling to be Automatic, Ignore, or Custom.

Descope Error handling within flow action configuration

When you select custom, you can change the flow handling behavior based on the error of an action. For example, you could show a screen that says that an error occurred and suggest other authentication method instead.

Error handling within Descope flows example

Was this helpful?

On this page