mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-24 14:34:15 +08:00
修改 response.errorDescription.contains() 参数 (#1708)
* 添加两个 response.errorDescription.contains() * 再添加一个qwq * 删除重复项 * 恢复删除的项 * 修改 * 修改
This commit is contained in:
parent
5fe1ef899d
commit
03541a6f85
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user