@openpass/openpass-js-sdk
Advanced tools
Comparing version 4.3.0 to 4.3.1-pre-release
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.3.0", | ||
"version": "4.3.1-pre-release", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -26,3 +26,2 @@ "use strict"; | ||
constructor(openPassOptions, redirectAuth, popupAuth, apiClient) { | ||
this.currentLoginHint = null; | ||
this.openPassOptions = openPassOptions; | ||
@@ -29,0 +28,0 @@ this.popupAuth = popupAuth; |
@@ -163,2 +163,7 @@ "use strict"; | ||
try { | ||
// refocus popup if already open | ||
if (this.popupAuth.refocusIfPopupExists()) { | ||
break; | ||
} | ||
// otherwise start a new flow | ||
const popupResult = yield this.popupAuth.signInWithPopup(Object.assign(Object.assign({}, signInOptionsBase), { redirectUrl: options.redirectUrl, source: "SignInWithOpenPassQuickAuth" })); | ||
@@ -165,0 +170,0 @@ if (popupSuccessCallback) { |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.3.0", | ||
"version": "4.3.1-pre-release", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -24,3 +24,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
constructor(openPassOptions, redirectAuth, popupAuth, apiClient) { | ||
this.currentLoginHint = null; | ||
this.openPassOptions = openPassOptions; | ||
@@ -27,0 +26,0 @@ this.popupAuth = popupAuth; |
@@ -160,2 +160,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
try { | ||
// refocus popup if already open | ||
if (this.popupAuth.refocusIfPopupExists()) { | ||
break; | ||
} | ||
// otherwise start a new flow | ||
const popupResult = yield this.popupAuth.signInWithPopup(Object.assign(Object.assign({}, signInOptionsBase), { redirectUrl: options.redirectUrl, source: "SignInWithOpenPassQuickAuth" })); | ||
@@ -162,0 +167,0 @@ if (popupSuccessCallback) { |
@@ -13,3 +13,3 @@ import { OpenPassApiClient } from "./api/openPassApiClient"; | ||
private readonly apiClient; | ||
private currentLoginHint; | ||
private currentLoginHint?; | ||
/** | ||
@@ -16,0 +16,0 @@ * Initializes a new instance of the InlineSignInForm class. |
@@ -19,3 +19,3 @@ import { OpenPassApiClient } from "./api/openPassApiClient"; | ||
private readonly openPassOptions; | ||
private popupWindow; | ||
private popupWindow?; | ||
constructor(OpenPassOptions: OpenPassOptions, redirectApi: RedirectAuth, openPassClient: OpenPassApiClient); | ||
@@ -22,0 +22,0 @@ refocusIfPopupExists(): boolean; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "4.3.0", | ||
"version": "4.3.1-pre-release", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1284601
7499
2