Skip to content
  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in

李君 / carrefour

Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • carrefour
  • src
  • utils
  • auth.js
  • 李君's avatar
    家乐福 · 3f239696
    李君 committed Oct 22, 2022
    3f239696
auth.js 275 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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)
}