File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,11 @@ Upgrade to dart 3.0.0
58
58
- Fix the ` UserInfo ` abstract class used as mixin incompatibility issue
59
59
- SDK now supports Dart ^3.0.0
60
60
- < 3.0.0 users please use the previous version of the SDK
61
+
62
+ ## 2.0.1
63
+
64
+ Bug fix
65
+
66
+ Issue: ` LogtoClient.getUserInfo ` method throws an ` not authenticated ` error when the initial access token is expired.
67
+ Expected behavior: The method should refresh the access token and return the user info properly.
68
+ Fix: Always get the access token by calling ` LogtoClient.getAccessToken ` , which will refresh the token automatically if it's expired.
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ packages:
310
310
path: ".."
311
311
relative: true
312
312
source: path
313
- version: "1. 2.0"
313
+ version: "2.0.1 "
314
314
matcher:
315
315
dependency: transitive
316
316
description:
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import '/src/modules/token_storage.dart';
11
11
import '/src/utilities/utils.dart' as utils;
12
12
import 'logto_core.dart' as logto_core;
13
13
14
+ export '/src/exceptions/logto_auth_exceptions.dart' ;
14
15
export '/src/interfaces/logto_interfaces.dart' ;
15
16
export '/src/utilities/constants.dart' ;
16
- export '/src/exceptions/logto_auth_exceptions.dart' ;
17
17
18
18
/**
19
19
* LogtoClient
@@ -306,7 +306,7 @@ class LogtoClient {
306
306
try {
307
307
final oidcConfig = await _getOidcConfig (httpClient);
308
308
309
- final accessToken = await _tokenStorage. getAccessToken ();
309
+ final accessToken = await getAccessToken ();
310
310
311
311
if (accessToken == null ) {
312
312
throw LogtoAuthException (
Original file line number Diff line number Diff line change 1
1
name : logto_dart_sdk
2
2
description : Logto's Flutter SDK packages.
3
- version : 2.0.0
3
+ version : 2.0.1
4
4
homepage : https://github.com/logto-io/dart
5
5
documentation : https://docs.logto.io/sdk/flutter/
6
6
You can’t perform that action at this time.
0 commit comments