PageSourceSearch

https://stringjoy.com/component---src-pages-auth-js-39f63bd8f9f281a98dc1.js

js stringjoy.com collected 2026-09-24 19:35:15 UTC 1,562 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[4449],{73309:function(e,t,a){a.r(t);var s=a(96540),o=(a(64810),a(71181));t.default=e=>{let{location:t}=e;const{0:a,1:c}=(0,s.useState)(!1),{setCustomerData:r,setAuthObject:n}=(0,o.L)();return(0,s.useEffect)((()=>{if("undefined"==typeof window)return;const e=new URLSearchParams(t.search).get("code");localStorage.getItem("loginRoute");e&&(async()=>{try{const a=await fetch("/api/accessToken",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})}),s=await a.json();if(s.access_token){const{access_token:e,refresh_token:a,id_token:o,expires_in:i,token_type:l}=s;try{const e=await fetch("/api/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:s})}),t=await e.json();t.access_token&&(localStorage.setItem("auth_object",JSON.stringify(s)),localStorage.setItem("customer_object",JSON.stringify(t.data.customer)),localStorage.setItem("auth_access_token",t.access_token),r(t.data.customer),n(s))}catch(t){console.error("Error:",t)}c(!0),window.location.href="https://accounts.stringjoy.com/"}}catch(t){console.error("Error:",t)}})()}),[t.search]),s.createElement("div",{className:"bg-white"},s.createElement("div",{className:"flex flex-col items-center justify-center h-screen"},s.createElement("p",{className:"font-plusJakarta text-secondprimary text-[16px]"},s.createElement("div",{className:"animate-spin rounded-full h-12 w-12 border-b-[1px] border-[#1d375c] mx-auto mb-4"}))))}}}]);

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.