mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
494 B
494 B
setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
->setProject('') // Your project ID
->setSession(''); // The user session to authenticate with
$account = new Account($client);
$result = $account->createMagicURLToken(
userId: '',
email: 'email@example.com',
url: 'https://example.com', // optional
phrase: false // optional
);