Ask AI
Skip to main content

Route to login

Function: Route to login​

This action helps you automatically send your users to the login page of your application. It's useful when you need to ensure a user is authenticated before they can proceed, or when you want to guide them back to the starting point of your application's secure areas.

Input​

This action does not require any specific information from you to work.

Output​

This action does not produce any data that you can use in subsequent steps. Its primary effect is to redirect the user's browser to the login page.

Execution Flow​

Real-Life Examples​

Here are some common scenarios where you might use the "Route to login" action:

  • Example 1: Session Timeout
    • Inputs: None
    • Result: If a user's session expires while they are on a protected page, this action can be automatically triggered to redirect them to the login page, prompting them to re-authenticate.
  • Example 2: Unauthorized Access Attempt
    • Inputs: None
    • Result: If a user tries to access a page or feature they don't have permission for, this action can send them back to the login page, preventing unauthorized entry and ensuring security.
  • Example 3: Manual Logout Button
    • Inputs: None
    • Result: When a user clicks a "Logout" button in your application, this action can be triggered after their session is cleared, ensuring they are properly logged out and returned to the login screen.