Skip to content

Commit 65ee762

Browse files
authored
Merge pull request #319 from okta/jn-cancel
Cancelling should get a cancelled response.
2 parents e0a63dd + 6e9a8ed commit 65ee762

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

library/src/main/java/com/okta/oidc/clients/web/SyncWebAuthClientImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ public Result signIn(@NonNull final Activity activity,
238238
StateResult authResult = startSignIn(activity, request);
239239
return processSignInResult(authResult);
240240
} catch (AuthorizationException e) {
241+
if (Thread.currentThread().isInterrupted()) {
242+
return Result.cancel();
243+
}
241244
return Result.error(e);
242245
} catch (IOException | InterruptedException e) {
243246
return Result.cancel();

0 commit comments

Comments
 (0)