修改 response.errorDescription.contains() 参数 (#1708)

* 添加两个 response.errorDescription.contains()

* 再添加一个qwq

* 删除重复项

* 恢复删除的项

* 修改

* 修改
This commit is contained in:
zkitefly 2022-09-10 21:50:08 +08:00 committed by GitHub
parent 5fe1ef899d
commit 03541a6f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,8 +181,7 @@ public class OAuth {
switch (response.error) {
case "invalid_grant":
if (response.errorDescription.contains("The user must sign in again and if needed grant the client application access to the requested scope") ||
response.errorDescription.contains("The user could not be authenticated as the grant is expired")) {
if (response.errorDescription.contains("AADSTS70000")) {
throw new CredentialExpiredException();
}
break;