1
This commit is contained in:
@@ -238,8 +238,11 @@ public class AuthServiceImpl implements IAuthService {
|
||||
*/
|
||||
public void logout() {
|
||||
try {
|
||||
// 清除内存中的token
|
||||
accessToken = null;
|
||||
refreshToken = null;
|
||||
|
||||
// 删除SQLite中的token缓存
|
||||
cacheDataRepository.deleteByCacheKey("token");
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user