f
This commit is contained in:
@@ -14,3 +14,14 @@ export function hasToken() {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
export function clearAuthSession() {
|
||||
try {
|
||||
uni.removeStorageSync('token')
|
||||
uni.removeStorageSync('refreshAfter')
|
||||
uni.removeStorageSync('accessExpire')
|
||||
}
|
||||
catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user