Account page two pane

This commit is contained in:
2024-05-02 12:51:16 +08:00
parent 3089e1f8d2
commit 52c09151a6
4 changed files with 161 additions and 113 deletions

View File

@ -48,7 +48,7 @@ class HttpClient extends http.BaseClient {
request.headers['Authorization'] = 'Bearer $currentToken';
final res = await _client.send(request);
if (res.statusCode == 401 && isUnauthorizedRetry) {
if (res.statusCode == 401 && currentToken != null && isUnauthorizedRetry) {
if (onUnauthorizedRetry != null) {
currentToken = await onUnauthorizedRetry!();
} else if (currentRefreshToken != null) {