Skip to content

Commit 34e2222

Browse files
committed
latest changes
1 parent 12cfc77 commit 34e2222

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite React Native SDK
22

33
![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)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

src/enums/flag.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export enum Flag {
140140
Palau = 'pw',
141141
PapuaNewGuinea = 'pg',
142142
Poland = 'pl',
143+
FrenchPolynesia = 'pf',
143144
NorthKorea = 'kp',
144145
Portugal = 'pt',
145146
Paraguay = 'py',

src/models.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ export namespace Models {
502502
* Session creation date in ISO 8601 format.
503503
*/
504504
$createdAt: string;
505+
/**
506+
* Session update date in ISO 8601 format.
507+
*/
508+
$updatedAt: string;
505509
/**
506510
* User ID.
507511
*/
@@ -1094,17 +1098,21 @@ export namespace Models {
10941098
*/
10951099
export type MfaFactors = {
10961100
/**
1097-
* TOTP
1101+
* Can TOTP be used for MFA challenge for this account.
10981102
*/
10991103
totp: boolean;
11001104
/**
1101-
* Phone
1105+
* Can phone (SMS) be used for MFA challenge for this account.
11021106
*/
11031107
phone: boolean;
11041108
/**
1105-
* Email
1109+
* Can email be used for MFA challenge for this account.
11061110
*/
11071111
email: boolean;
1112+
/**
1113+
* Can recovery code be used for MFA challenge for this account.
1114+
*/
1115+
recoveryCode: boolean;
11081116
}
11091117
/**
11101118
* Subscriber

src/services/account.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class Account extends Service {
257257
*
258258
* Add an authenticator app to be used as an MFA factor. Verify the
259259
* authenticator using the [verify
260-
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
260+
* authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator)
261261
* method.
262262
*
263263
* @param {AuthenticatorType} type
@@ -282,8 +282,8 @@ export class Account extends Service {
282282
* Verify Authenticator
283283
*
284284
* 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
287287
*
288288
* @param {AuthenticatorType} type
289289
* @param {string} otp
@@ -322,7 +322,7 @@ export class Account extends Service {
322322
* @throws {AppwriteException}
323323
* @returns {Promise}
324324
*/
325-
async deleteMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>> {
325+
async deleteMfaAuthenticator(type: AuthenticatorType, otp: string): Promise<{}> {
326326
if (typeof type === 'undefined') {
327327
throw new AppwriteException('Missing required parameter: "type"');
328328
}

0 commit comments

Comments
 (0)