Skip to content

Commit

Permalink
Merge pull request #1655 from appwrite/fix-auth-samples
Browse files Browse the repository at this point in the history
Fix: Auth samples
  • Loading branch information
loks0n authored Jan 20, 2025
2 parents 31616f1 + 49151dc commit 5337601
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/routes/docs/products/auth/email-password/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const client = new Client()

const account = new Account(client);

const promise = account.createVerification('https://example.com');
const promise = account.createVerification('https://example.com/verify');

promise.then(function (response) {
console.log(response); // Success
Expand Down Expand Up @@ -110,7 +110,7 @@ import { Client, Account } from "appwrite";
const client = new Client()
.setProject('<PROJECT_ID>'); // Your project ID

const promise = account.createRecovery('[email protected]', 'https://example.com');
const promise = account.createRecovery('[email protected]', 'https://example.com/recovery');

promise.then(function (response) {
console.log(response); // Success
Expand All @@ -130,7 +130,6 @@ const client = new Client()
const promise = account.updateRecovery(
'[USER_ID]',
'[SECRET]',
'password',
'password'
);

Expand Down

0 comments on commit 5337601

Please sign in to comment.