PageSourceSearch

https://www.cloudlegal.ai/_next/static/chunks/pages/auth/auto-login-4d28982315fe71b5.js

js cloudlegal.ai collected 2026-10-04 14:14:25 UTC 1,986 bytes, 2 lines download raw bytes

1/*! For license information please see auto-login-4d28982315fe71b5.js.LICENSE.txt */
2(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8500],{26558:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/auto-login",function(){return r(8431)}])},8431:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSG:function(){return w}});var s=r(27387),t=r(66626),o=r(15767),c=r(52676),i=r(75271),u=r(58686),a=r(93885),_=r.n(a),f=r(96501),d=r(53749),l=r(29654),h=r(68364),w=!0;n.default=function(){var e,n=(0,f.useRouter)(),r=(0,t._)((0,i.useState)(null),2),a=r[0],w=r[1],T=(0,i.useRef)(!1),k=(0,i.useCallback)((e=(0,s._)(function(e){var n,r,s,t;return(0,o.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,l.Dc.exchangeToken({body:{code:e},throwOnError:!0})];case 1:return n=o.sent().data,r=new u.AM({UserPoolId:(0,h.Oi)("NEXT_PUBLIC_COGNITO_USER_POOL_ID"),ClientId:(0,h.Oi)("NEXT_PUBLIC_COGNITO_USER_POOL_WEB_CLIENT_ID")}),s=new u.ws({Username:n.email,Pool:r}),t=new u.MZ({IdToken:new u.xk({IdToken:n.idToken}),AccessToken:new u.ZA({AccessToken:n.accessToken}),RefreshToken:new u.bR({RefreshToken:n.refreshToken})}),s.setSignInUserSession(t),window.location.href="/dashboard",[3,3];case 2:return o.sent(),w("ログインに失敗しました。リンクの有効期限が切れている可能性があります。"),[3,3];case 3:return[2]}})}),function(n){return e.apply(this,arguments)}),[]);return(0,i.useEffect)(function(){if(n.isReady&&!T.current){T.current=!0;var e=n.query.code;"string"==typeof e&&e?k(e):n.replace("/dashboard")}},[n,k]),a?(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"100vh",gap:"16px"},children:[(0,c.jsx)("p",{children:a}),(0,c.jsx)(_(),{href:"/dashboard",children:"ダッシュボードへ"})]}):(0,c.jsx)(d.f,{message:"ログイン中...",isOpen:!0})}}},function(e){e.O(0,[9774,2888,179],function(){return n=26558,e(e.s=n);var n});var n=e.O();_N_E=n}]);

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.