Backport pull request #5500 from jellyfin-web/release-10.9.z
Fix stored credentials not updating on logout Original-merge: ea8ceaa72738f65f525dc15957a603791cf68e88 Merged-by: thornbill <thornbill@users.noreply.github.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
committed by
Joshua M. Boniface
parent
6053c2f3f8
commit
fcce771cd8
@@ -35,6 +35,8 @@ class ServerConnections extends ConnectionManager {
|
||||
|
||||
Events.on(this, 'localusersignedout', (_e, logoutInfo) => {
|
||||
setUserInfo(null, null);
|
||||
// Ensure the updated credentials are persisted to storage
|
||||
credentialProvider.credentials(credentialProvider.credentials());
|
||||
|
||||
if (window.NativeShell && typeof window.NativeShell.onLocalUserSignedOut === 'function') {
|
||||
window.NativeShell.onLocalUserSignedOut(logoutInfo);
|
||||
@@ -128,12 +130,12 @@ class ServerConnections extends ConnectionManager {
|
||||
}
|
||||
}
|
||||
|
||||
const credentials = new Credentials();
|
||||
const credentialProvider = new Credentials();
|
||||
|
||||
const capabilities = Dashboard.capabilities(appHost);
|
||||
|
||||
export default new ServerConnections(
|
||||
credentials,
|
||||
credentialProvider,
|
||||
appHost.appName(),
|
||||
appHost.appVersion(),
|
||||
appHost.deviceName(),
|
||||
|
||||
Reference in New Issue
Block a user