lanan-old/rescue-user/utils/auth.js
愉快的大福 7dc28dc701 init
2024-07-17 14:16:22 +08:00

14 lines
257 B
JavaScript

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)
}