mirror of
https://github.com/plankanban/planka.git
synced 2025-08-05 13:35:27 +02:00
Initial commit
This commit is contained in:
commit
5ffef61fe7
613 changed files with 91659 additions and 0 deletions
11
client/src/utils/access-token-storage.js
Executable file
11
client/src/utils/access-token-storage.js
Executable file
|
@ -0,0 +1,11 @@
|
|||
const ACCESS_TOKEN_KEY = 'accessToken';
|
||||
|
||||
export const getAccessToken = () => localStorage.getItem(ACCESS_TOKEN_KEY);
|
||||
|
||||
export const setAccessToken = (accessToken) => {
|
||||
localStorage.setItem(ACCESS_TOKEN_KEY, accessToken);
|
||||
};
|
||||
|
||||
export const removeAccessToken = () => {
|
||||
localStorage.removeItem(ACCESS_TOKEN_KEY);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue