fix: empty custom header prevent logging in (#20693)

This commit is contained in:
Alex 2025-08-05 11:14:21 -05:00 committed by GitHub
parent 7118dca559
commit a573a23c83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
await _apiService.setAccessToken(accessToken);
final serverEndpoint = Store.get(StoreKey.serverEndpoint);
final customHeaders = Store.get(StoreKey.customHeaders);
final customHeaders = Store.tryGet(StoreKey.customHeaders);
await _widgetService.writeCredentials(serverEndpoint, accessToken, customHeaders);
// Get the deviceid from the store if it exists, otherwise generate a new one