auth.js
275 Bytes
import Cookies from 'js-cookie'
const AtokenKey = 'atoken'
export function getAtoken() {
return Cookies.get(AtokenKey)
}
export function setAtoken(atoken) {
return Cookies.set(AtokenKey, atoken)
}
export function removeAtoken() {
return Cookies.remove(AtokenKey)
}