PageSourceSearch

https://snapbox.ai/assets/KakaoAuth-Bb_v4hnF.js

js snapbox.ai collected 2026-10-05 12:39:18 UTC 1,512 bytes, 1 lines download raw bytes

1import{o as m,C as h,A as d,u as f}from"./index-GRB8Jcml.js";import{K as l}from"./KakaoService-BeqN20Z4.js";const j={name:"KakaoAuth",components:{},setup(){let p=f();m(()=>{const n=new URL(window.location.href).searchParams.get("code");if(console.log("code",n),n){const e=new URLSearchParams;e.append("code",n),e.append("grant_type","authorization_code"),e.append("client_id","6b2949ab8eddc94a208dc2ac90f0304a"),e.append("redirect_uri",l.redirect_uri),e.append("client_secret","CpAb8ytX7uQjyzTa3yyme96c8PvtMjBY"),h.post("https://kauth.kakao.com/oauth/token",e,{headers:{Authorization:"87e30b2a548bb65e14d9861d0ff55513","Content-Type":"application/x-www-form-urlencoded;charset=utf-8"}}).then(c=>{let s=c.data.id_token;const i=s.split(".")[1],u=i.replace(/-/g,"+").replace(/_/g,"/"),a=JSON.parse(decodeURIComponent(window.atob(u).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join("")));let k={aud:a.aud,email:a.email};l.check(k).then(o=>{if(console.log(o.data),o.data.code=="S"){window.Kakao.Auth.setAccessToken(s),localStorage.setItem("kakao_join_info",JSON.stringify({email:a.email,nickname:a.nickname,payload:i}));const r=d.takeJoinIntent();let t="/join-select?provider=kakao";r==="seller"?t="/join-creator-kakao":r==="buyer"&&(t="/join-normal-kakao"),!r&&d.getCookie("login_to")==="seller_join"&&(t="/join-creator-kakao"),p.replace(t)}else d.login("","",i)}).catch(o=>{console.log(o.response.data)})}).catch(c=>{console.log(c.response.data)})}})}};export{j as default};

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.