1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-27 00:59:44 +02:00

feat: Invalidate access token on logout

This commit is contained in:
Maksim Eltyshev 2022-09-07 18:39:33 +05:00
parent f091de6827
commit 48ea62c0a0
26 changed files with 242 additions and 37 deletions

View file

@ -1,9 +1,14 @@
import http from './http';
import socket from './socket';
/* Actions */
const createAccessToken = (data, headers) => http.post('/access-tokens', data, headers);
const deleteCurrentAccessToken = (headers) =>
socket.delete('/access-tokens/me', undefined, headers);
export default {
createAccessToken,
deleteCurrentAccessToken,
};