You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
356 B
15 lines
356 B
const ID_TOKEN_KEY = "id_token";
|
|
|
|
export const getToken = () => {
|
|
return window.localStorage.getItem(ID_TOKEN_KEY);
|
|
};
|
|
|
|
export const saveToken = token => {
|
|
window.localStorage.setItem(ID_TOKEN_KEY, token);
|
|
};
|
|
|
|
export const destroyToken = () => {
|
|
window.localStorage.removeItem(ID_TOKEN_KEY);
|
|
};
|
|
|
|
export default { getToken, saveToken, destroyToken };
|