mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 03:23:51 -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;
|
break;
|
||||||
case 'token-expired':
|
case 'token-expired':
|
||||||
notif = {
|
notif = null;
|
||||||
title: 'Login expired',
|
store.dispatch(signOut());
|
||||||
message: 'Please login again.',
|
|
||||||
sticky: true,
|
|
||||||
id: 'login-expired',
|
|
||||||
button: {
|
|
||||||
title: 'Go to login',
|
|
||||||
action: () => {
|
|
||||||
store.dispatch(signOut());
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.trace('unknown error', event);
|
console.trace('unknown error', event);
|
||||||
|
|||||||
6
upcoming-release-notes/6798.md
Normal file
6
upcoming-release-notes/6798.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Enhancements
|
||||||
|
authors: [saahiljaffer]
|
||||||
|
---
|
||||||
|
|
||||||
|
automatically sign out on token expiry
|
||||||
Reference in New Issue
Block a user