You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/account.md
+95Lines changed: 95 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,33 @@ POST https://cloud.appwrite.io/v1/account/mfa/authenticators/{type}
112
112
| type | string |**Required** Type of authenticator. Must be `totp`||
113
113
114
114
115
+
```http request
116
+
POST https://cloud.appwrite.io/v1/account/mfa/authenticators/{type}
117
+
```
118
+
119
+
** Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method. **
120
+
121
+
### Parameters
122
+
123
+
| Field Name | Type | Description | Default |
124
+
| --- | --- | --- | --- |
125
+
| type | string |**Required** Type of authenticator. Must be `totp`||
126
+
127
+
128
+
```http request
129
+
PUT https://cloud.appwrite.io/v1/account/mfa/authenticators/{type}
130
+
```
131
+
132
+
** Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. **
133
+
134
+
### Parameters
135
+
136
+
| Field Name | Type | Description | Default |
137
+
| --- | --- | --- | --- |
138
+
| type | string |**Required** Type of authenticator. ||
139
+
| otp | string | Valid verification token. ||
140
+
141
+
115
142
```http request
116
143
PUT https://cloud.appwrite.io/v1/account/mfa/authenticators/{type}
| type | string |**Required** Type of authenticator. ||
180
+
181
+
142
182
```http request
143
183
POST https://cloud.appwrite.io/v1/account/mfa/challenge
144
184
```
@@ -152,6 +192,33 @@ POST https://cloud.appwrite.io/v1/account/mfa/challenge
152
192
| factor | string | Factor used for verification. Must be one of following: `email`, `phone`, `totp`, `recoveryCode`. ||
153
193
154
194
195
+
```http request
196
+
POST https://cloud.appwrite.io/v1/account/mfa/challenge
197
+
```
198
+
199
+
** Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method. **
200
+
201
+
### Parameters
202
+
203
+
| Field Name | Type | Description | Default |
204
+
| --- | --- | --- | --- |
205
+
| factor | string | Factor used for verification. Must be one of following: `email`, `phone`, `totp`, `recoveryCode`. ||
206
+
207
+
208
+
```http request
209
+
PUT https://cloud.appwrite.io/v1/account/mfa/challenge
210
+
```
211
+
212
+
** Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method. **
213
+
214
+
### Parameters
215
+
216
+
| Field Name | Type | Description | Default |
217
+
| --- | --- | --- | --- |
218
+
| challengeId | string | ID of the challenge. ||
219
+
| otp | string | Valid verification token. ||
220
+
221
+
155
222
```http request
156
223
PUT https://cloud.appwrite.io/v1/account/mfa/challenge
157
224
```
@@ -173,6 +240,20 @@ GET https://cloud.appwrite.io/v1/account/mfa/factors
173
240
** List the factors available on the account to be used as a MFA challange. **
174
241
175
242
243
+
```http request
244
+
GET https://cloud.appwrite.io/v1/account/mfa/factors
245
+
```
246
+
247
+
** List the factors available on the account to be used as a MFA challange. **
248
+
249
+
250
+
```http request
251
+
GET https://cloud.appwrite.io/v1/account/mfa/recovery-codes
252
+
```
253
+
254
+
** Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes. **
255
+
256
+
176
257
```http request
177
258
GET https://cloud.appwrite.io/v1/account/mfa/recovery-codes
178
259
```
@@ -187,6 +268,20 @@ POST https://cloud.appwrite.io/v1/account/mfa/recovery-codes
187
268
** Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method. **
188
269
189
270
271
+
```http request
272
+
POST https://cloud.appwrite.io/v1/account/mfa/recovery-codes
273
+
```
274
+
275
+
** Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method. **
** Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes. **
0 commit comments