1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 09:32:50 +00:00

statistics tab for discord chat

This commit is contained in:
2018-04-10 21:51:45 -05:00
parent 27a42f1b99
commit 5fa0f1ac2e
22 changed files with 281 additions and 34 deletions

View File

@@ -0,0 +1,17 @@
const clear = () => {
localStorage.clear();
};
const setJWT = (token: string) => {
localStorage.setItem('jwt', token);
};
const getJWT = (): string | null => {
return localStorage.getItem('jwt');
};
export const StorageService = {
clear,
getJWT,
setJWT,
};