flinfo/dc-App/utils/auth.js
2025-03-01 10:26:49 +08:00

14 lines
261 B
JavaScript

const TokenKey = 'Authorization'
export function getToken() {
return uni.getStorageSync(TokenKey)
}
export function setToken(token) {
return uni.setStorageSync(TokenKey, token)
}
export function removeToken() {
return uni.removeStorageSync(TokenKey)
}