auth.js 295 B

1234567891011121314
  1. const TokenKey = process.env.TOKEN_KEY
  2. const globalTokenKey = TokenKey + '_7121'
  3. export function getToken() {
  4. return uni.getStorageSync(TokenKey)
  5. }
  6. export function setToken(token) {
  7. uni.setStorageSync(TokenKey, token)
  8. }
  9. export function removeToken() {
  10. uni.removeStorageSync(TokenKey)
  11. }