💩 Kinda rude to solve token doesn't refresh
This commit is contained in:
parent
7c8c1025e2
commit
b520f27b90
@ -109,7 +109,7 @@ class AuthGuard {
|
||||
Future<bool> isAuthorized() async {
|
||||
const storage = FlutterSecureStorage();
|
||||
if (await storage.containsKey(key: storageKey)) {
|
||||
if (client != null && client!.credentials.isExpired) {
|
||||
if (client != null) {
|
||||
await refreshToken();
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user