Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Account → Create Phone 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 Phone Token' operation, it creates a phone token for a given phone number in E.164 format. This is useful for scenarios where phone verification or authentication via phone tokens is required, such as user account verification or two-factor authentication.

Use Case Examples

  1. Creating a phone token to verify a user's phone number during account registration.
  2. Generating a phone token to enable phone-based login or multi-factor authentication.

Properties

Name Meaning
Phone The phone number in E.164 format for which the phone token will be created.

Output

JSON

  • phoneToken - The created phone token associated with the provided phone number.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure the phone number is provided in the correct E.164 format (e.g., +14155552671) to avoid validation errors.
  • Check that the Appwrite API credentials (endpoint, project ID, API key) are correctly configured to prevent authentication failures.
  • If the operation fails, verify that the Appwrite server is reachable and the account resource supports the 'Create Phone Token' operation.

Links

Discussion