mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix stored credentials not updating on logout
This commit is contained in:
parent
df26f36a09
commit
d17c35acc3
1 changed files with 4 additions and 2 deletions
|
@ -35,6 +35,8 @@ class ServerConnections extends ConnectionManager {
|
||||||
|
|
||||||
Events.on(this, 'localusersignedout', (_e, logoutInfo) => {
|
Events.on(this, 'localusersignedout', (_e, logoutInfo) => {
|
||||||
setUserInfo(null, null);
|
setUserInfo(null, null);
|
||||||
|
// Ensure the updated credentials are persisted to storage
|
||||||
|
credentialProvider.credentials(credentialProvider.credentials());
|
||||||
|
|
||||||
if (window.NativeShell && typeof window.NativeShell.onLocalUserSignedOut === 'function') {
|
if (window.NativeShell && typeof window.NativeShell.onLocalUserSignedOut === 'function') {
|
||||||
window.NativeShell.onLocalUserSignedOut(logoutInfo);
|
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);
|
const capabilities = Dashboard.capabilities(appHost);
|
||||||
|
|
||||||
export default new ServerConnections(
|
export default new ServerConnections(
|
||||||
credentials,
|
credentialProvider,
|
||||||
appHost.appName(),
|
appHost.appName(),
|
||||||
appHost.appVersion(),
|
appHost.appVersion(),
|
||||||
appHost.deviceName(),
|
appHost.deviceName(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue