PageSourceSearch

https://certbox.app/assets/GoogleOneTap-DT9DEqVw.js

js certbox.app collected 2026-09-24 14:07:49 UTC 1,966 bytes, 1 lines download raw bytes

1import{r as s}from"./vendor-tanstack-D3Q9Yyxk.js";import{b1 as g,b2 as l,b3 as f,b4 as p}from"./index-DN5F4pPB.js";import{u as m,a as b}from"./vendor-react-DrSAzhxl.js";import"./vendor-helmet-CqRzfjPa.js";import"./vendor-supabase-DpwOtkOU.js";import"./vendor-icons-DsBP5CwP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"8bad1ef1d1baf20043d4024cccb275075dbee4da"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="af14ba5e-d571-4366-9ab8-89dde19d8448",e._sentryDebugIdIdentifier="sentry-dbid-af14ba5e-d571-4366-9ab8-89dde19d8448")}catch{}})();const h="97976015045-9ku06pdt8fk2dgv9h81du20cofskm46j.apps.googleusercontent.com";async function w(){const e=btoa(String.fromCharCode(...crypto.getRandomValues(new Uint8Array(32)))),t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),a=Array.from(new Uint8Array(n)).map(r=>r.toString(16).padStart(2,"0")).join("");return[e,a]}const y=["/login","/signup","/reset-password","/pricing","/auth/continue","/certificates/try","/confirm-email"];function k(){const{user:e}=g(),t=m(),{pathname:n}=b(),a=s.useRef(!1),r=y.some(o=>n===o||n.startsWith(`${o}/`));return s.useEffect(()=>{if(e||a.current||r||l())return;a.current=!0;const o=document.createElement("script");return o.src="https://accounts.google.com/gsi/client",o.async=!0,o.onload=async()=>{if(!window.google||e)return;const[c,i]=await w();window.google.accounts.id.initialize({client_id:h,callback:async d=>{f("google_one_tap");const{error:u}=await p.auth.signInWithIdToken({provider:"google",token:d.credential,nonce:c});u||t("/?welcome=1")},nonce:i,auto_select:!1,use_fedcm_for_prompt:!0,context:"signup",itp_support:!0}),window.google.accounts.id.prompt()},document.head.appendChild(o),()=>{if(window.google)try{window.google.accounts.id.cancel()}catch{}}},[e,t,r]),null}export{k as GoogleOneTap};

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.