Flows

Descope Flows are visual, drag-and-drop workflows designed to simplify the creation of user authentication journeys. By abstracting complex authentication logic, Flows enable developers to build secure, customizable user journeys without writing any code.

Why Use Flows?

Flows provide several key advantages over traditional authentication implementation:

  • Rapid Development: Build complex authentication sequences in minutes instead of weeks
  • Security First: Built-in security best practices and automatic updates
  • Consistent UX: Maintain a uniform experience across your application
  • Easy Maintenance: Update logic without deploying code
  • Flexible Integration: Works seamlessly with your existing tech stack

Flow Components

Flows are constructed using a drag-and-drop Flow Builder, where each flow comprises of the following interconnected components:

  • Screens: Design branded, responsive UI components for user interactions
  • Actions: Execute tasks like sending OTPs, verifying magic links, or updating user profiles
  • Connectors: Integrate with 3rd party services to fetch or push information
  • Conditions: Implement decision logic based on user attributes or behaviors
  • Subflows: Reuse existing flows within new ones to promote modularity

These components work together to define the logic and UI of your authentication processes.

Descope flow example

Best Practices

  1. Start Simple: Begin with basic flows from our flow library, and gradually add complexity
  2. Test Thoroughly: Use the flow-runner to test all scenarios
  3. Monitor Performance: Track flow completion rates and user behavior and iterate on your flows accordingly
  4. Stay Updated: Keep flows aligned with security best practices

For detailed information about editing and managing flows, see Managing Flows.

Was this helpful?

On this page