mirror of
https://github.com/plankanban/planka.git
synced 2025-12-25 17:25:01 +03:00
feat: Invalidate access token on logout
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
export const selectAccessToken = ({ auth: { accessToken } }) => accessToken;
|
||||
|
||||
export default {
|
||||
selectAccessToken,
|
||||
};
|
||||
@@ -4,8 +4,12 @@ import isUndefined from 'lodash/isUndefined';
|
||||
import orm from '../orm';
|
||||
import Config from '../constants/Config';
|
||||
|
||||
export const selectAccessToken = ({ auth: { accessToken } }) => accessToken;
|
||||
|
||||
export const selectIsCoreInitializing = ({ core: { isInitializing } }) => isInitializing;
|
||||
|
||||
export const selectIsLogouting = ({ core: { isLogouting } }) => isLogouting;
|
||||
|
||||
const nextPosition = (items, index, excludedId) => {
|
||||
const filteredItems = isUndefined(excludedId)
|
||||
? items
|
||||
@@ -94,7 +98,9 @@ export const selectNextTaskPosition = createSelector(
|
||||
);
|
||||
|
||||
export default {
|
||||
selectAccessToken,
|
||||
selectIsCoreInitializing,
|
||||
selectIsLogouting,
|
||||
selectNextBoardPosition,
|
||||
selectNextListPosition,
|
||||
selectNextCardPosition,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import router from './router';
|
||||
import auth from './auth';
|
||||
import core from './core';
|
||||
import modals from './modals';
|
||||
import users from './users';
|
||||
@@ -14,7 +13,6 @@ import attachments from './attachments';
|
||||
|
||||
export default {
|
||||
...router,
|
||||
...auth,
|
||||
...core,
|
||||
...modals,
|
||||
...users,
|
||||
|
||||
Reference in New Issue
Block a user