feat: oauth exception

This commit is contained in:
Nevo David 2024-10-18 17:33:37 +07:00
parent 5aae28bdbc
commit 581953ba18
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export abstract class SocialAbstract {
json = '{}';
}
if (request.status === 401) {
if (request.status === 401 || json.includes('OAuthException')) {
throw new RefreshToken(identifier, json, options.body!);
}