File tree Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Appwrite React Native SDK
2
2
3
3
![ License] ( https://img.shields.io/github/license/appwrite/sdk-for-react-native.svg?style=flat-square )
4
- ![ Version] ( https://img.shields.io/badge/api%20version-1.5.0 -blue.svg?style=flat-square )
4
+ ![ Version] ( https://img.shields.io/badge/api%20version-1.5.4 -blue.svg?style=flat-square )
5
5
[ ![ Build Status] ( https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square )] ( https://travis-ci.com/appwrite/sdk-generator )
6
6
[ ![ Twitter Account] ( https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square )] ( https://twitter.com/appwrite )
7
7
[ ![ Discord] ( https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square )] ( https://appwrite.io/discord )
Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ export enum Flag {
140
140
Palau = 'pw' ,
141
141
PapuaNewGuinea = 'pg' ,
142
142
Poland = 'pl' ,
143
+ FrenchPolynesia = 'pf' ,
143
144
NorthKorea = 'kp' ,
144
145
Portugal = 'pt' ,
145
146
Paraguay = 'py' ,
Original file line number Diff line number Diff line change @@ -502,6 +502,10 @@ export namespace Models {
502
502
* Session creation date in ISO 8601 format.
503
503
*/
504
504
$createdAt : string ;
505
+ /**
506
+ * Session update date in ISO 8601 format.
507
+ */
508
+ $updatedAt : string ;
505
509
/**
506
510
* User ID.
507
511
*/
@@ -1094,17 +1098,21 @@ export namespace Models {
1094
1098
*/
1095
1099
export type MfaFactors = {
1096
1100
/**
1097
- * TOTP
1101
+ * Can TOTP be used for MFA challenge for this account.
1098
1102
*/
1099
1103
totp : boolean ;
1100
1104
/**
1101
- * Phone
1105
+ * Can phone (SMS) be used for MFA challenge for this account.
1102
1106
*/
1103
1107
phone : boolean ;
1104
1108
/**
1105
- * Email
1109
+ * Can email be used for MFA challenge for this account.
1106
1110
*/
1107
1111
email : boolean ;
1112
+ /**
1113
+ * Can recovery code be used for MFA challenge for this account.
1114
+ */
1115
+ recoveryCode : boolean ;
1108
1116
}
1109
1117
/**
1110
1118
* Subscriber
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ export class Account extends Service {
257
257
*
258
258
* Add an authenticator app to be used as an MFA factor. Verify the
259
259
* authenticator using the [verify
260
- * authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator )
260
+ * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator )
261
261
* method.
262
262
*
263
263
* @param {AuthenticatorType } type
@@ -282,8 +282,8 @@ export class Account extends Service {
282
282
* Verify Authenticator
283
283
*
284
284
* Verify an authenticator app after adding it using the [add
285
- * authenticator](/docs/references/cloud/client-web/account#addAuthenticator )
286
- * method.
285
+ * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator )
286
+ * method. add
287
287
*
288
288
* @param {AuthenticatorType } type
289
289
* @param {string } otp
@@ -322,7 +322,7 @@ export class Account extends Service {
322
322
* @throws {AppwriteException }
323
323
* @returns {Promise }
324
324
*/
325
- async deleteMfaAuthenticator < Preferences extends Models . Preferences > ( type : AuthenticatorType , otp : string ) : Promise < Models . User < Preferences > > {
325
+ async deleteMfaAuthenticator ( type : AuthenticatorType , otp : string ) : Promise < { } > {
326
326
if ( typeof type === 'undefined' ) {
327
327
throw new AppwriteException ( 'Missing required parameter: "type"' ) ;
328
328
}
You can’t perform that action at this time.
0 commit comments