Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Account → Create Session from Token
AI-generatedOverview
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
- Creating a session for a user after they provide a secret token received via email or SMS.
- 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
- Appwrite Account Create Session from Token API - Official documentation for creating a session from a token in Appwrite's Account service.