PageSourceSearch

https://www.machuda.kr/_next/static/chunks/pages/auth/pass-b6d1db80b4a0dbca.js

js machuda.kr collected 2026-10-05 17:56:58 UTC 6,677 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="111bd546-35ff-469a-a7f6-3d4b80844ee2",e._sentryDebugIdIdentifier="sentry-dbid-111bd546-35ff-469a-a7f6-3d4b80844ee2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9218],{87947:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/pass",function(){return r(79617)}])},79617:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S},requestPassSession:function(){return g}});var n=r(85893),s=r(67294),a=r(12031),o=r(96637);const i="passAuthRequestMeta",c=600,l=2,u=2e3,d=200;const f=function(){var e;const t=null===(e="https://prod-api.machuda.kr")?void 0:e.trim().replace(/^['\"]|['\"]$/g,"").replace(/\/$/,"");return t||"https://api.machuda.kr"}(),h="".concat(f,"/v2/auth/pass/nice-v1/session"),p=e=>new Promise((t=>setTimeout(t,e))),w=()=>{try{return crypto.randomUUID()}catch(e){return"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,10))}},m=(e,t)=>t&&0===e?"network-unreachable":e>=500?"server-error":e>=400?"client-error":"unknown";async function g(e,t){const r=Date.now();let n=new Error("\uc778\uc99d \uc694\uccad\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.");for(let f=0;f<l;f+=1){const t=new AbortController,r=setTimeout((()=>t.abort()),u);let w=0;try{const r=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({returnUrl:e,deviceType:(0,o.l7)()}),signal:t.signal});w=r.status;const n=await r.text();let s;try{s=JSON.parse(n)}catch(i){const e=new Error("\uc778\uc99d \uc11c\ubc84 \uc751\ub2f5\uc744 \ud655\uc778\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.");throw e.reason="invalid-response",e.httpStatus=w,e}if(!r.ok||"SUCCESS"!==s.code){const e=new Error(s.message||"\uc778\uc99d \uc694\uccad\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.");throw e.reason=m(w,!1),e.httpStatus=w,e}if(!s.response){const e=new Error("\uc778\uc99d \uc694\uccad\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.");throw e.reason="invalid-response",e.httpStatus=w,e}return s.response}catch(c){var s;const e=c instanceof Error?c:new Error("\uc778\uc99d \uc694\uccad\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.");var a;e.reason||(e.reason=m(w,!0)),null!==(a=(s=e).httpStatus)&&void 0!==a||(s.httpStatus=w),e.attempts=f+1,n=e;if(!("network-unreachable"===e.reason||"server-error"===e.reason)||f+1>=l)break;await p(d)}finally{clearTimeout(r)}}throw Object.assign(n,{flowId:t,elapsedMs:Date.now()-r}),n}
1function S(){const[e,t]=(0,s.useState)(null),[r,o]=(0,s.useState)(!0),l=(0,s.useRef)(!1);return(0,s.useEffect)((()=>{if(l.current)return;l.current=!0;(async()=>{const e=w();try{const t="".concat(window.location.origin,"/auth/pass/complete"),r=await g(t,e);if(!r.authUrl||!r.encData||!r.integrityValue||!r.tokenVersionId||!r.transactionId||!r.requestNo)throw new Error("\uc778\uc99d \ub370\uc774\ud130\uac00 \uc62c\ubc14\ub974\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.");const n=JSON.stringify({verificationId:r.verificationId,tokenVersionId:r.tokenVersionId,requestNo:r.requestNo,transactionId:r.transactionId,createdAt:Date.now(),flowId:e});try{localStorage.setItem(i,n)}catch(u){(0,a.H)(new Error("PASS request meta localStorage write failed"),{where:"auth.pass.request.meta",level:"warning",extra:{flowId:e,target:"localStorage",cause:u instanceof Error?u.message:String(u)}})}try{const e="https:"===window.location.protocol?";secure":"";document.cookie="".concat(i,"=").concat(encodeURIComponent(n),";path=/auth/pass;max-age=").concat(c,";samesite=lax").concat(e)}catch(d){(0,a.H)(new Error("PASS request meta cookie write failed"),{where:"auth.pass.request.meta",level:"warning",extra:{flowId:e,target:"cookie",cause:d instanceof Error?d.message:String(d)}})}!function(e){const t=document.createElement("form");t.method="POST",t.action=e.authUrl;const r={m:"service",token_version_id:e.tokenVersionId,enc_data:e.encData,integrity_value:e.integrityValue};Object.entries(r).forEach((e=>{let[r,n]=e;const s=document.createElement("input");s.type="hidden",s.name=r,s.value=n,t.appendChild(s)})),document.body.appendChild(t),t.submit()}(r)}catch(f){const o=f,i=o.reason||"unknown";var r,n;(0,a.H)(new Error("PASS session request failed: ".concat(i)),{where:"auth.pass.request.fetch",extra:{reason:i,httpStatus:null!==(r=o.httpStatus)&&void 0!==r?r:0,attempts:null!==(n=o.attempts)&&void 0!==n?n:0,elapsedMs:o.elapsedMs,flowId:o.flowId||e,cause:f instanceof Error?f.message:String(f),online:"undefined"!==typeof navigator?navigator.onLine:null}});const c=f instanceof Error?f.message:"\uc778\uc99d \uc694\uccad\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.";if(t(c),window.opener)window.opener.postMessage({type:"PASS_AUTH_ERROR",success:!1,error:c},window.location.origin),setTimeout((()=>window.close()),800);else{let t=!1;try{var s,l;localStorage.setItem("passAuthResult",JSON.stringify({success:!1,error:c,diag:{phase:"session-request",reason:i,httpStatus:null!==(s=o.httpStatus)&&void 0!==s?s:0,attempts:null!==(l=o.attempts)&&void 0!==l?l:0,elapsedMs:o.elapsedMs,flowId:o.flowId||e}})),t=!0}catch(u){(0,a.H)(new Error("PASS session failure result storage failed"),{where:"auth.pass.request.fetch",extra:{reason:"result-storage-failed",flowId:o.flowId||e,cause:u instanceof Error?u.message:String(u)}})}const r=t?"":"?pass_error=result-storage-failed&pass_reason=session-request";setTimeout((()=>window.location.replace("/user/signup/terms".concat(r))),100)}}finally{o(!1)}})()}),[]),e?(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-white",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-TextNormal text-[1rem]",children:e}),(0,n.jsx)("p",{className:"text-TextAssistive text-[0.875rem] mt-[0.5rem]",children:"\uc7a0\uc2dc \ud6c4 \ucc3d\uc774 \ub2eb\ud799\ub2c8\ub2e4."})]})}):r?(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-white",children:(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("p",{className:"text-TextNormal text-[1rem]",children:"\uc778\uc99d \uc815\ubcf4\ub97c \ubd88\ub7ec\uc624\ub294 \uc911..."})})}):(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-white",children:(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("p",{className:"text-TextNormal text-[1rem]",children:"\ubcf8\uc778\uc778\uc99d \ud398\uc774\uc9c0\ub85c \uc774\ub3d9 \uc911\uc785\ub2c8\ub2e4..."})})})}}},function(e){e.O(0,[2888,9774,179],(function(){return t=87947,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.