mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 01:40:02 -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);
|
||||
|
||||
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