Fix OAuth2 token lingering after revocation

このコミットが含まれているのは:
Alexander Tumin 2023-08-14 16:21:43 +03:00
コミット ac78f80194
2個のファイルの変更7行の追加0行の削除

1
changelog.d/oauth2-token-linger.fix ノーマルファイル
ファイルの表示

@ -0,0 +1 @@
Fix OAuth2 token lingering after revocation

ファイルの表示

@ -651,6 +651,12 @@ const users = {
const response = data.error
// Authentication failed
commit('endLogin')
// remove authentication token on client/authentication errors
if ([400, 401, 403, 422].includes(response.status)) {
commit('clearToken')
}
if (response.status === 401) {
reject(new Error('Wrong username or password'))
} else {