fix(mobile): oauth-mobile-first-login ()

invalidate ref

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
shenlong 2025-03-27 21:19:55 +05:30 committed by GitHub
parent 6341962de4
commit cc393b2b7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,6 +210,9 @@ class LoginForm extends HookConsumerWidget {
.getOAuthServerUrl(sanitizeUrl(serverEndpointController.text));
isLoading.value = true;
// Invalidate all api repository provider instance to take into account new access token
invalidateAllApiRepositoryProviders(ref);
} catch (error, stack) {
log.severe('Error getting OAuth server Url: $error', stack);