💩 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 {
|
Future<bool> isAuthorized() async {
|
||||||
const storage = FlutterSecureStorage();
|
const storage = FlutterSecureStorage();
|
||||||
if (await storage.containsKey(key: storageKey)) {
|
if (await storage.containsKey(key: storageKey)) {
|
||||||
if (client != null && client!.credentials.isExpired) {
|
if (client != null) {
|
||||||
await refreshToken();
|
await refreshToken();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user