Skip to content

Commit 581953b

Browse files
author
Nevo David
committed
feat: oauth exception
1 parent 5aae28b commit 581953b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/nestjs-libraries/src/integrations/social.abstract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export abstract class SocialAbstract {
3030
json = '{}';
3131
}
3232

33-
if (request.status === 401) {
33+
if (request.status === 401 || json.includes('OAuthException')) {
3434
throw new RefreshToken(identifier, json, options.body!);
3535
}
3636

0 commit comments

Comments
 (0)