PageSourceSearch

https://namag.app/_next/static/chunks/pages/extension-login-f4f6313b27756275.js

js namag.app collected 2026-10-02 01:14:52 UTC 3,743 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6294],{22489:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/extension-login",function(){return n(67818)}])},72428:function(e,t,n){"use strict";function i(e,t){if(!t)throw Error("Missing required env var: ".concat(e,". ")+"Set it in .env.local (see .env.local.example) or in your deploy environment.");return t}n.d(t,{iq:function(){return o},yQ:function(){return r}});let r={domain:i("NEXT_PUBLIC_AUTH0_DOMAIN","auth.namag.app"),clientId:i("NEXT_PUBLIC_AUTH0_CLIENT_ID","pStqJXxuO8mbRziCA8iTQSQdPwg49Cia"),audience:i("NEXT_PUBLIC_AUTH0_AUDIENCE","https://noax.eu.auth0.com/api/v2/"),redirectUri:"".concat(window.location.origin,"/auth/callback"),safariExtensionRedirectUri:"".concat(window.location.origin,"/safari-login/callback"),logoutRedirectUri:"".concat(window.location.origin),scope:"openid profile email offline_access",get authorizationEndpoint(){let e=r.domain;return"https://".concat(e,"/authorize")},get tokenEndpoint(){let e=r.domain;return"https://".concat(e,"/oauth/token")},get logoutEndpoint(){let e=r.domain;return"https://".concat(e,"/v2/logout")},get userInfoEndpoint(){let e=r.domain;return"https://".concat(e,"/userinfo")}},o=(e,t,n)=>{let i=new URLSearchParams({client_id:r.clientId,redirect_uri:r.redirectUri,response_type:"code",scope:r.scope,audience:r.audience,state:e,code_challenge:t,code_challenge_method:"S256"});return n&&i.append("connection",n),"".concat(r.authorizationEndpoint,"?").concat(i.toString())}},67818:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var i=n(85893),r=n(67294),o=n(11163),a=n(9008),s=n.n(a),c=n(72428);function l(){let e=(0,o.useRouter)(),[t,n]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!e.isReady)return;let{code_challenge:t,state:i,connection:r}=e.query;if(!t||"string"!=typeof t){n("Missing code_challenge parameter from extension");return}if(!i||"string"!=typeof i){n("Missing state parameter from extension");return}sessionStorage.setItem("extension_oauth_state",i);let o=new URL(c.yQ.authorizationEndpoint);o.searchParams.set("client_id","CwvUR3rqL0eQkHJLWGXrfMEzT1oEbSvt"),o.searchParams.set("redirect_uri","".concat(window.location.origin,"/extension-login/callback")),o.searchParams.set("response_type","code"),o.searchParams.set("scope",c.yQ.scope),o.searchParams.set("code_challenge",t),o.searchParams.set("code_challenge_method","S256"),o.searchParams.set("state",i),o.searchParams.set("audience",c.yQ.audience),r&&"string"==typeof r&&["google-oauth2","apple"].includes(r)&&o.searchParams.set("connection",r),window.location.href=o.toString()},[e.isReady,e.query]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s(),{children:(0,i.jsx)("title",{children:"Extension Login - Namag"})}),(0,i.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-gray-950 via-slate-900 to-gray-950 flex items-center justify-center p-4",children:t?(0,i.jsx)("div",{className:"w-full max-w-md",children:(0,i.jsxs)("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg p-6",children:[(0,i.jsx)("h1",{className:"text-xl font-bold text-red-300 mb-2",children:"Login Error"}),(0,i.jsx)("p",{className:"text-red-200/80",children:t}),(0,i.jsx)("p",{className:"mt-4 text-white/60 text-sm",children:"Please close this tab and try logging in again from the extension."})]})}):(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("div",{className:"inline-block",children:(0,i.jsx)("div",{className:"w-12 h-12 border-4 border-purple-500/20 border-t-purple-500 rounded-full animate-spin"})}),(0,i.jsx)("p",{className:"mt-6 text-white/70 text-lg",children:"Redirecting to login..."})]})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=22489)}),_N_E=e.O()}]);

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.