xnzt/xnzt-h5/utils/auth.js

14 lines
257 B
JavaScript
Raw Permalink Normal View History

2024-11-11 10:27:27 +08:00
const TokenKey = 'App-Token'
export function getToken() {
return uni.getStorageSync(TokenKey)
}
export function setToken(token) {
return uni.setStorageSync(TokenKey, token)
}
export function removeToken() {
return uni.removeStorageSync(TokenKey)
}