1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

use oauth for file uploads

This commit is contained in:
2018-02-19 16:06:33 -06:00
parent 79b4fecd3c
commit 02fe8e1748
16 changed files with 490 additions and 286 deletions

12
client/app/storage.ts Normal file
View File

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