Skip to content

Latest commit

History

History
15 lines (11 loc) 路 405 Bytes

File metadata and controls

15 lines (11 loc) 路 405 Bytes

import Appwrite

let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with

let account = Account(client)

let token = try await account.createEmailToken( userId: "<USER_ID>", email: "email@example.com", phrase: false // optional )