Skip to content

Commit f8081dd

Browse files
committed
Fixes for nested query parsing and MFA route authentication types
1 parent 3020664 commit f8081dd

File tree

8 files changed

+9
-210
lines changed

8 files changed

+9
-210
lines changed

docs/examples/users/delete-authenticator.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/examples/users/list-providers.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/appwrite.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ part 'services/locale.dart';
3838
part 'services/messaging.dart';
3939
part 'services/storage.dart';
4040
part 'services/teams.dart';
41-
part 'services/users.dart';

lib/services/users.dart

Lines changed: 0 additions & 44 deletions
This file was deleted.

lib/src/models/session.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Session implements Model {
5353
/// Returns true if this the current user session.
5454
final bool current;
5555
/// Returns a list of active session factors.
56-
final int factors;
56+
final List factors;
5757
/// Secret used to authenticate the user. Only included if the request was made with an API key
5858
final String secret;
5959

test/services/account_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void main() {
641641
'countryCode': 'US',
642642
'countryName': 'United States',
643643
'current': true,
644-
'factors': 1,
644+
'factors': [],
645645
'secret': '5e5bb8c16897e',};
646646

647647

@@ -683,7 +683,7 @@ void main() {
683683
'countryCode': 'US',
684684
'countryName': 'United States',
685685
'current': true,
686-
'factors': 1,
686+
'factors': [],
687687
'secret': '5e5bb8c16897e',};
688688

689689

@@ -727,7 +727,7 @@ void main() {
727727
'countryCode': 'US',
728728
'countryName': 'United States',
729729
'current': true,
730-
'factors': 1,
730+
'factors': [],
731731
'secret': '5e5bb8c16897e',};
732732

733733

@@ -783,7 +783,7 @@ void main() {
783783
'countryCode': 'US',
784784
'countryName': 'United States',
785785
'current': true,
786-
'factors': 1,
786+
'factors': [],
787787
'secret': '5e5bb8c16897e',};
788788

789789

@@ -827,7 +827,7 @@ void main() {
827827
'countryCode': 'US',
828828
'countryName': 'United States',
829829
'current': true,
830-
'factors': 1,
830+
'factors': [],
831831
'secret': '5e5bb8c16897e',};
832832

833833

@@ -870,7 +870,7 @@ void main() {
870870
'countryCode': 'US',
871871
'countryName': 'United States',
872872
'current': true,
873-
'factors': 1,
873+
'factors': [],
874874
'secret': '5e5bb8c16897e',};
875875

876876

test/services/users_test.dart

Lines changed: 0 additions & 112 deletions
This file was deleted.

test/src/models/session_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void main() {
3131
countryCode: 'US',
3232
countryName: 'United States',
3333
current: true,
34-
factors: 1,
34+
factors: [],
3535
secret: '5e5bb8c16897e',
3636
);
3737

@@ -63,7 +63,7 @@ void main() {
6363
expect(result.countryCode, 'US');
6464
expect(result.countryName, 'United States');
6565
expect(result.current, true);
66-
expect(result.factors, 1);
66+
expect(result.factors, []);
6767
expect(result.secret, '5e5bb8c16897e');
6868
});
6969
});

0 commit comments

Comments
 (0)