mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
changes token expiry handling to be automatic sign out (#6798)
* changes token expiry handling to be automatic sign out * add release notes --------- Co-authored-by: Matt Fiddaman <github@m.fiddaman.uk>
This commit is contained in:
@@ -355,18 +355,8 @@ export function listenForSyncEvent(store: AppStore) {
|
||||
};
|
||||
break;
|
||||
case 'token-expired':
|
||||
notif = {
|
||||
title: 'Login expired',
|
||||
message: 'Please login again.',
|
||||
sticky: true,
|
||||
id: 'login-expired',
|
||||
button: {
|
||||
title: 'Go to login',
|
||||
action: () => {
|
||||
store.dispatch(signOut());
|
||||
},
|
||||
},
|
||||
};
|
||||
notif = null;
|
||||
store.dispatch(signOut());
|
||||
break;
|
||||
default:
|
||||
console.trace('unknown error', event);
|
||||
|
||||
Reference in New Issue
Block a user