Logo white

antissoft / NetworkInformation

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • NetworkInformation
  • src
  • utils
  • auth.js
  • 属地页面
    9b7e125f
    monkeyhouyi authored
    2024-07-15 11:16:34 +0800  
    Browse Code »
auth.js 273 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import Cookies from 'js-cookie'

const TokenKey = 'Account-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}