Skip to main content
Module

x/appwrite/mod.ts>Account#createMagicURLToken

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Account.prototype.createMagicURLToken
Re-export
import { Account } from "https://deno.land/x/appwrite@10.0.0/mod.ts";

Create magic URL token

Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the POST /v1/account/sessions/token endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default.

A user is limited to 10 active sessions at a time by default. Learn more about session limits.

Parameters

userId: string
email: string
optional
url: string
optional
phrase: boolean