fix: try to refresh token before logging out on 401 unauthorized

This commit is contained in:
thecodrr
2022-01-07 13:58:06 +05:00
parent ff5439e791
commit a130db41a4
4 changed files with 26 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ export const EVENTS = {
appRefreshRequested: "app:refreshRequested",
noteRemoved: "note:removed",
tokenRefreshed: "token:refreshed",
logoutUser: "user:logout",
userUnauthorized: "user:unauthorized",
attachmentsLoading: "attachments:loading",
attachmentDeleted: "attachment:deleted",
mediaAttachmentDownloaded: "attachments:mediaDownloaded",