-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd88e2b
commit 8346925
Showing
1 changed file
with
5 additions
and
5 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,8 +64,8 @@ Begin your login flow with the default authentication method used by your app (f | |
|
||
```js | ||
const user = await account.createEmailPasswordSession( | ||
'[email protected]', // email | ||
'password' // password | ||
'[email protected]', // email | ||
'password' // password | ||
); | ||
``` | ||
|
||
|
@@ -110,7 +110,7 @@ Based on the enabled providers, you can initialize the additional auth step. Cal | |
|
||
```js | ||
const challenge = await account.createChallenge( | ||
'phone' // factor | ||
'phone' // factor | ||
); | ||
|
||
// Save the challenge ID to complete the challenge later | ||
|
@@ -123,8 +123,8 @@ Once the user receives the challenge code, you can pass the code back to Appwrit | |
|
||
```js | ||
const challenge = await account.updateChallenge( | ||
'<CHALLENGE_ID>', // challengeId | ||
'<OTP>' // otp | ||
'<CHALLENGE_ID>', // challengeId | ||
'<OTP>' // otp | ||
); | ||
``` | ||
|
||
|