Docs
NodesAuth Nodes
Edit Page on GitHub

Verify Session

Validates a Bearer token and returns session details.

authsessionvalidateEasy0

Verify Session

0
Flow
IsValid
Session
User
Tool
Flow
Not connectedFlow
Token

Description

The Verify Session node is designed to validate a Bearer token and retrieve associated session details. This node is essential for workflows that require authentication, allowing you to ensure that a user or agent has a valid session before proceeding with certain actions.

When you provide a Bearer token to this node, it checks the token's validity and returns several outputs:

  • IsValid: A boolean indicating whether the session is valid or not.
  • Session: A JSON object containing details about the session, such as its creation time, expiration time, and any associated metadata.
  • User: A JSON object with information about the user associated with the session, such as their ID, name, email, and roles.
  • Tool: If the session is valid, this output can provide an LLM Tool that can be used in subsequent nodes for making authenticated API calls or accessing protected resources.

Common Use Cases

  • Authentication Workflows: Use this node to validate user sessions before allowing access to certain parts of your workflow or before performing sensitive actions.
  • Conditional Logic: Combine this node with flow control nodes to create branches in your workflow based on whether a session is valid or not.
  • Session Management: Use the session and user details returned by this node to personalize interactions or to make informed decisions in your workflow based on the user's identity and session status.

Inputs

The input connections this node accepts:

NameDescriptionTypeFlowThe flow of the workflowFlowTokenBearer TokenText

Outputs

The output connections this node provides:

NameDescriptionTypeFlowThe Flow to triggerFlowIsValidIs session valid?BooleanSessionSession objectJSONUserUser objectJSONToolLLM ToolTool

Fields

The configurable fields this node provides:

NameDescriptionTypeTokenBearer TokenText

Last updated on