Skip to content

Commit

Permalink
feat: oauth exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevo David committed Oct 18, 2024
1 parent 5aae28b commit 581953b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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!);
}

Expand Down

0 comments on commit 581953b

Please sign in to comment.