support clear token in database after logout, support clear browser token when api responses token invalid

This commit is contained in:
MaysWind
2020-10-22 00:04:30 +08:00
parent 22234f27d8
commit 18052a22f2
7 changed files with 106 additions and 5 deletions
+10
View File
@@ -5,6 +5,15 @@ export default {
}
},
'error': {
'unauthorized access': 'Unauthorized access',
'token is expired': 'Token is expired',
'token is invalid': 'Token is invalid',
'user token id is invalid': 'User token id is invalid',
'token id is invalid': 'Token id is invalid',
'token is not found': 'Token is not found',
'token type is invalid': 'Token type is invalid',
'token requires two factor authorization': 'Token requires two factor authorization',
'token does not require two factor authorization': 'Token does not require two factor authorization',
'user id is invalid': 'User id is invalid',
'username is empty': 'Username is empty',
'email is empty': 'Email is empty',
@@ -51,4 +60,5 @@ export default {
'Language': 'Language',
'Log Out': 'Log Out',
'Are you sure you want to log out?': 'Are you sure you want to log out?',
'Unable to logout': 'Unable to logout',
};
+10
View File
@@ -5,6 +5,15 @@ export default {
}
},
'error': {
'unauthorized access': '未授权的登录',
'token is expired': '认证令牌已过期',
'token is invalid': '认证令牌无效',
'user token id is invalid': '用户认证令牌ID无效',
'token id is invalid': '认证令牌ID无效',
'token is not found': '认证令牌不存在',
'token type is invalid': '认证令牌类型无效',
'token requires two factor authorization': '认证令牌需要两步验证',
'token does not require two factor authorization': '认证令牌不需要两步验证',
'user id is invalid': '用户ID无效',
'username is empty': '用户名为空',
'email is empty': '电子邮箱为空',
@@ -51,4 +60,5 @@ export default {
'Language': '语言',
'Log Out': '退出登录',
'Are you sure you want to log out?': '您确定是否要退出登录?',
'Unable to logout': '无法退出登录',
};