MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / Be

Function Be

webapp/_webapp/src/libs/apple-auth.js:830–844  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

828 var be,
829 xe,
830 Be = function (e) {
831 var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
832 ve() && Ce({ error: Z }), (fe = t), "2" !== R[1] && (R[1] = "1");
833 var i = W(e);
834 R[1] = "0";
835 var o,
836 n,
837 A = !!window.Promise;
838 if (e.usePopup) {
839 if (t && !A) throw new Error("Promise is required to use popup, please use polyfill.");
840 if (te(i)) {
841 if (((pe = !0), t)) return (n = de()), (ue = n);
842 } else if ((ge(K, { error: L }), t)) return Promise.reject({ error: L });
843 } else (o = i), window.location.assign(o);
844 },
845 ze = function (e) {
846 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : X;
847 ["scope", "state", "nonce", "usePopup", "codeChallenge", "codeChallengeMethod"].forEach(function (i) {

Callers 1

meFunction · 0.85

Calls 6

veFunction · 0.85
CeFunction · 0.85
WFunction · 0.85
teFunction · 0.85
deFunction · 0.85
geFunction · 0.85

Tested by

no test coverage detected