Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Account → Create Magic URL

AI-generated

Overview

This node interacts with the Appwrite API to perform various operations related to user accounts, databases, attributes, avatars, indexes, collections, documents, functions, locales, messaging, sites, storage, teams, and users. Specifically, for the 'Account' resource and 'Create Magic URL' operation, it facilitates the creation of a magic URL for authentication or verification purposes. This is useful in scenarios where passwordless login or email verification is required, enhancing user experience and security. For example, it can be used to send a magic link to users for account verification or password recovery.

Use Case Examples

  1. Creating a magic URL for user email verification.
  2. Generating a magic URL for password recovery.
  3. Sending a magic URL to initiate an OAuth2 session.

Properties

Name Meaning
Success URL URL to redirect to after successful authentication, used in operations like createOAuth2Session, updateMagicURL, and updateMagicURLSession.
Failure URL URL to redirect to after failed authentication, used in operations like createOAuth2Session, updateMagicURL, and updateMagicURLSession.
URL Verification callback URL used in operations like createEmailVerification, createPasswordRecovery, createRecovery, and updateMagicURL.

Output

JSON

  • magicURL - The generated magic URL for authentication or verification.
  • status - Status of the magic URL creation operation.
  • error - Error details if the operation fails.

Dependencies

  • Appwrite API endpoint
  • Project ID
  • API key

Troubleshooting

  • Ensure the Appwrite API credentials (endpoint, project ID, API key) are correctly configured to avoid authentication errors.
  • Verify that the URLs provided (successUrl, failureUrl, url) are valid and accessible to prevent redirection issues.
  • Common errors may include network issues, invalid credentials, or incorrect operation parameters. Check error messages for specific details and adjust configuration accordingly.

Discussion