feat: oauth exception
This commit is contained in:
parent
5aae28bdbc
commit
581953ba18
|
|
@ -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!);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue