-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1655 from appwrite/fix-auth-samples
Fix: Auth samples
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -130,7 +130,6 @@ const client = new Client() | |
const promise = account.updateRecovery( | ||
'[USER_ID]', | ||
'[SECRET]', | ||
'password', | ||
'password' | ||
); | ||
|
||
|