mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
10 lines
210 B
TypeScript
10 lines
210 B
TypeScript
export const TOKEN_KEY = 'token';
|
|
|
|
export const getToken = () => {
|
|
return localStorage.getItem(TOKEN_KEY);
|
|
};
|
|
|
|
export const setToken = (token: string) => {
|
|
return localStorage.setItem(TOKEN_KEY, token);
|
|
};
|