mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 17:23:20 +03:00
fix: empty custom header prevent logging in (#20693)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user