PageSourceSearch

https://account.quotidianodipuglia.it/assets/GoogleOAuthCodeToToken-Cc4MMgTT.js

js quotidianodipuglia.it collected 2026-09-27 21:31:44 UTC 1,872 bytes, 1 lines download raw bytes

1import{z as e,a as o,r,D as t,N as i,t as s,e as a,j as n,L as l}from"./index-r-KClxtY.js";/* empty css            */const c=()=>{const c=e(),{addNotice:d}=o();return r.useEffect((()=>{const e=t("flow",c.search)||t("flow",window.location.search)||"rrme",o=t("code",c.search)||t("code",window.location.search)||null,r=t("state",c.search)||t("state",window.location.search)||null,n=JSON.parse(r||"")||null;if(!n)return console.error("Google OAuth state is missing or invalid"),d({title:s.notices.invalid_session,type:i.error,timeout:1e4}),window.location.replace("/sso/login");let l=n.redirect_uri||"/dashboard",u="/social/google/claim-entitlements?redirect_uri="+encodeURIComponent(l);if(console.log("GoogleOAuthCodeToToken, redirect_uri",l,"starting_route",u),o){const t={code:o,google_state_raw:r,redirect_uri:l};let c;switch(e){case"rrme":c="/api/user/social/google/rrme-exchange-auth-code-for-tokens";break;case"classroom":c="/api/user/social/google/oauth/register-login",u="/classroom/login?redirect_uri="+encodeURIComponent(l);break;default:c="/api/user/social/google/oauth/register-login"}a(c,t).then((e=>{if(204==(null==e?void 0:e.status)){d({title:s.notices.reader_id_not_found,type:i.error,timeout:1e4});const e=u||n.redirect_uri||"/dashboard";return window.location.replace(e)}if(200!==(null==e?void 0:e.status))return d({title:s.notices.generic_error,type:i.error,timeout:1e4}),window.location.replace(u);{const o=e.data.redirect_uri||n.redirect_uri||"/dashboard";return window.location.replace(o)}})).catch((e=>{console.warn(e),d({title:s.notices.invalid_google_token,type:i.error,timeout:1e4}),window.location.replace(u)}))}else{t("error",c.search)&&d({title:s.notices.invalid_session,type:i.error,timeout:1e4}),window.location.replace("/sso/login?redirect_uri="+encodeURIComponent(l))}}),[]),n.jsx(l,{labelPrimary:s.sso.login_loader})};export{c 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.