fast-eve-41839
08/27/2024, 11:17 AMmagnificent-energy-493
<script src="https://accounts.google.com/gsi/client" async></script>
<script>
window.callbackOneTap = function (otp) {
fetch("https://auth.tohaheavyindustries.com/self-service/login/browser", {
headers: {
Accept: "application/json",
},
})
.then((response) => response.json())
.then((flow) => {
fetch("https://auth.tohaheavyindustries.com/self-service/login?flow=" + flow.id, {
credentials: "include",
method: "POST",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
method: "oidc",
provider: "google",
id_token: otp.credential,
csrf_token: flow.ui.nodes[2].attributes.value,
}),
}).then((response) => {window.location.reload();});
});
};
</script>
<div
id="g_id_onload"
data-client_id="193053703241-asd.apps.googleusercontent.com"
data-context="signin"
data-callback="callbackOneTap"
data-itp_support="true"
data-use_fedcm_for_prompt="true"
data-ux_mode="redirect"
data-login_uri="https://auth.tohaheavyindustries.com/self-service/login"
></div>
<!-- data-use_fedcm_for_prompt="true" -->fast-eve-41839
08/27/2024, 11:43 AMmagnificent-energy-493