🐛 Fix unauthorized things

This commit is contained in:
2024-09-15 16:54:07 +08:00
parent 306ce9e2b4
commit aeaade9590
2 changed files with 3 additions and 1 deletions

View File

@@ -216,6 +216,7 @@ class AuthProvider extends GetConnect {
}
Future<void> refreshUserProfile() async {
if (!isAuthorized.value) return;
final client = configureClient('auth');
final resp = await client.get('/users/me');
if (resp.statusCode != 200) {