Skip to content

Commit d840d94

Browse files
committed
fix: reject promise if window close by user
1 parent 83cdb5d commit d840d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/oauth/popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class OAuthPopup {
5252
) {
5353
clearInterval(poolingInterval);
5454
poolingInterval = null;
55-
throw new Error('Auth popup window closed');
55+
reject(new Error('Auth popup window closed'));
5656
}
5757

5858
try {

0 commit comments

Comments
 (0)