First Committ

This commit is contained in:
Paolo Arena
2021-08-31 18:09:59 +02:00
commit 1d6c55807c
299 changed files with 55382 additions and 0 deletions

15
src/utils/auth.ts Executable file
View File

@@ -0,0 +1,15 @@
import Cookies from 'js-cookie'
const TokenKey = 'Admin-Token'
export function getCookie() {
return Cookies.get(TokenKey)
}
export function setCookie(token: string) {
return Cookies.set(TokenKey, token)
}
export function removeCookie() {
return Cookies.remove(TokenKey)
}