From b520f27b90d486023f02584b9398d1b863781b93 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 24 Mar 2024 13:43:23 +0800 Subject: [PATCH] :poop: Kinda rude to solve token doesn't refresh --- lib/auth.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth.dart b/lib/auth.dart index 081fae2..b31f971 100644 --- a/lib/auth.dart +++ b/lib/auth.dart @@ -109,7 +109,7 @@ class AuthGuard { Future isAuthorized() async { const storage = FlutterSecureStorage(); if (await storage.containsKey(key: storageKey)) { - if (client != null && client!.credentials.isExpired) { + if (client != null) { await refreshToken(); } return true;