Skip to content

Instantly share code, notes, and snippets.

@volf52
Created March 9, 2023 13:26
Show Gist options
  • Save volf52/e2c072737f365949df3e89e6135a77c7 to your computer and use it in GitHub Desktop.
Save volf52/e2c072737f365949df3e89e6135a77c7 to your computer and use it in GitHub Desktop.
google OpenId
<script src="https://accounts.google.com/gsi/client" async defer></script>
<div
id="g_id_onload"
data-client_id="{client_id_from_env}"
data-context="signin"
data-ux_mode="popup"
data-login_uri="{api_host}/api/oauth/signin/google"
data-auto_prompt="false"
></div>
<div
className="g_id_signin"
data-type="standard"
data-shape="pill"
data-theme="filled_blue"
data-text="signin_with"
data-size="large"
data-locale="en-US"
data-logo_alignment="left"
></div>
<div
id="g_id_onload"
data-client_id="{client_id_from_env}"
data-context="signup"
data-ux_mode="popup"
data-login_uri="{api_host}/api/oauth/signup/google"
data-auto_prompt="false"
></div>
<div
className="g_id_signin"
data-type="standard"
data-shape="pill"
data-theme="filled_blue"
data-text="signup_with"
data-size="large"
data-locale="en-US"
data-logo_alignment="left"
></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment