Skip to main content
Module

x/appwrite/mod.ts>Account#createEmailToken

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

Create email token (OTP)

Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the POST /v1/account/sessions/token endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.

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

Parameters

userId: string
email: string
optional
phrase: boolean