Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Account → Create Session from Token

AI-generated

Overview

This node interacts with the Appwrite API to perform various operations on different resources. Specifically, for the 'Account' resource and the 'Create Session from Token' operation, it allows creating a user session by verifying a secret token associated with a user ID. This is useful for authentication workflows where a session needs to be established based on a token, such as logging in a user or verifying their identity.

Use Case Examples

  1. Creating a session for a user after they provide a secret token received via email or SMS.
  2. Automating user login processes in an application by validating tokens and establishing sessions.

Properties

Name Meaning
User ID The unique identifier of the user for whom the session is being created.
Secret The secret token used for verification to create the session securely.

Output

JSON

  • sessionId - The unique identifier of the created session.
  • userId - The user ID associated with the created session.
  • sessionToken - The token representing the created session, used for authentication.

Dependencies

  • Appwrite API endpoint
  • Project ID
  • API key credential for authentication

Troubleshooting

  • Ensure the User ID and Secret token are correct and valid; invalid credentials will cause authentication failures.
  • Check that the Appwrite API credentials (endpoint, project ID, API key) are correctly configured in the node settings.
  • If the API returns errors, verify network connectivity and that the Appwrite server is accessible.
  • Handle errors gracefully by enabling 'Continue On Fail' to avoid workflow interruptions.

Links

Discussion