File tree Expand file tree Collapse file tree 2 files changed +7
-31
lines changed Expand file tree Collapse file tree 2 files changed +7
-31
lines changed Original file line number Diff line number Diff line change @@ -504,34 +504,6 @@ packages:
504
504
url: "https://pub.dartlang.org"
505
505
source: hosted
506
506
version: "1.1.0"
507
- webview_flutter:
508
- dependency: transitive
509
- description:
510
- name: webview_flutter
511
- url: "https://pub.dartlang.org"
512
- source: hosted
513
- version: "3.0.4"
514
- webview_flutter_android:
515
- dependency: transitive
516
- description:
517
- name: webview_flutter_android
518
- url: "https://pub.dartlang.org"
519
- source: hosted
520
- version: "2.10.0"
521
- webview_flutter_platform_interface:
522
- dependency: transitive
523
- description:
524
- name: webview_flutter_platform_interface
525
- url: "https://pub.dartlang.org"
526
- source: hosted
527
- version: "1.9.3"
528
- webview_flutter_wkwebview:
529
- dependency: transitive
530
- description:
531
- name: webview_flutter_wkwebview
532
- url: "https://pub.dartlang.org"
533
- source: hosted
534
- version: "2.9.3"
535
507
x509:
536
508
dependency: transitive
537
509
description:
@@ -548,4 +520,4 @@ packages:
548
520
version: "3.1.1"
549
521
sdks:
550
522
dart: ">=2.17.6 <3.0.0"
551
- flutter: ">=3 .0.0"
523
+ flutter: ">=2 .0.0"
Original file line number Diff line number Diff line change @@ -2,16 +2,15 @@ import 'package:flutter_web_auth/flutter_web_auth.dart';
2
2
import 'package:http/http.dart' as http;
3
3
import 'package:jose/jose.dart' ;
4
4
5
- import 'logto_core.dart' as logto_core;
6
5
import '/src/exceptions/logto_auth_exceptions.dart' ;
7
6
import '/src/interfaces/logto_interfaces.dart' ;
8
7
import '/src/modules/id_token.dart' ;
9
8
import '/src/modules/logto_storage_strategy.dart' ;
10
9
import '/src/modules/pkce.dart' ;
11
10
import '/src/modules/token_storage.dart' ;
12
-
13
11
import '/src/utilities/constants.dart' ;
14
12
import '/src/utilities/utils.dart' as utils;
13
+ import 'logto_core.dart' as logto_core;
15
14
16
15
export '/src/interfaces/logto_config.dart' ;
17
16
@@ -67,6 +66,11 @@ class LogtoClient {
67
66
return _oidcConfig! ;
68
67
}
69
68
69
+ Future <AccessToken ?> getAccessToken (
70
+ {List <String >? scopes, String ? resource}) async {
71
+ return await _tokenStorage.getAccessToken (resource, scopes);
72
+ }
73
+
70
74
bool _loading = false ;
71
75
72
76
Future <void > signIn (String redirectUri) async {
You can’t perform that action at this time.
0 commit comments