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:
12
client/app/storage.ts
Normal file
12
client/app/storage.ts
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user