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

Function W

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

Source from the content-addressed store, hash-verified

655 N = "AppleIDSignInOnSuccess",
656 K = "AppleIDSignInOnFailure",
657 W = function (e) {
658 var t =
659 "".concat(e.baseURI).concat(e.path, "?client_id=") +
660 encodeURIComponent(e.client.clientId) +
661 "&redirect_uri=" +
662 encodeURIComponent(e.client.redirectURI) +
663 "&response_type=" +
664 encodeURIComponent(e.responseType);
665 return (
666 ["state", "scope", "nonce"].forEach(function (i) {
667 e.client[i] && (t = "".concat(t, "&").concat(i, "=").concat(encodeURIComponent(e.client[i])));
668 }),
669 e.client.codeChallenge && (t += "&code_challenge=".concat(encodeURIComponent(e.client.codeChallenge))),
670 e.client.codeChallengeMethod &&
671 (t += "&code_challenge_method=".concat(encodeURIComponent(e.client.codeChallengeMethod))),
672 (t =
673 (t =
674 (t = e.usePopup
675 ? t + "&response_mode=" + encodeURIComponent("web_message")
676 : t + "&response_mode=" + encodeURIComponent(e.responseMode)) +
677 "&frame_id=" +
678 "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
679 var t = (16 * Math.random()) | 0;
680 return ("x" == e ? t : (3 & t) | 8).toString(16);
681 })) +
682 "&m=" +
683 R[0] +
684 R[1]),
685 (t += "&v=1.5.5")
686 );
687 },
688 j = {},
689 O = {},
690 H = {},

Callers 1

BeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected