@authsignal/browser 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3673,6 +3673,10 @@ var AuthsignalClient = /** @class */ (function () {
|
|
|
3673
3673
|
setCookie("__as_aid", newId, Infinity, this.cookieDomain, document.location.protocol !== "http:");
|
|
3674
3674
|
return { idCookie: newId, generated: true };
|
|
3675
3675
|
};
|
|
3676
|
+
AuthsignalClient.prototype.challengeWithRedirect = function (_a) {
|
|
3677
|
+
var challengeUrl = _a.challengeUrl;
|
|
3678
|
+
window.location.href = challengeUrl;
|
|
3679
|
+
};
|
|
3676
3680
|
AuthsignalClient.prototype.challengeWithPopup = function (_a) {
|
|
3677
3681
|
var challengeUrl = _a.challengeUrl;
|
|
3678
3682
|
var Popup = new PopupHandler();
|