2023-07-13 20:03:53 +03:00

14 lines
233 B
TypeScript

const getToken = () => {
const token = localStorage.getItem('Token')
/* check expirity */
return token
}
const setToken = (token: string) => {
localStorage.setItem('Token', token)
}
export { getToken, setToken }