react-oauth icon indicating copy to clipboard operation
react-oauth copied to clipboard

oneTap toggle doesn't work?

Open Kimblis opened this issue 1 year ago • 3 comments

These are my options:

 <GoogleOAuthProvider clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}>
      <GoogleLogin
        onSuccess={onSuccess}
        onError={onError}
        width={matchesMobile ? 300 : 400}
        logo_alignment="left"
        auto_select={false}
        useOneTap={false}
        theme="outline"
      />
    </GoogleOAuthProvider>

However I still see this: image And I don't like this drastic layout shift. How can I turn this off? ...

Kimblis avatar Jul 29 '24 15:07 Kimblis

Completely agree the button is completely messed up and the toggle doesn't work.

image

just for a couple of seconds I do get the proper button:

image

DrRek avatar Sep 02 '24 19:09 DrRek

This is still the issue, any way to solve it or even add full width with dark mode?

Tried with:

<GoogleLogin
  useOneTap={false}
  text="signup_with"
  auto_select={false}
  shape="rectangular"
  theme="outline"
  ux_mode="popup"
  itp_support={false}
  .....

saicoder avatar Dec 02 '24 22:12 saicoder

To fix weird white padding you just need to use the colorscheme and set it on light on the parent component:

<Box className="flex justify-center" style={{ colorScheme: `light` }}>
    <GoogleLogin
        ...
    />
</Box>

Its not at all intuitive or even documented, but it works:

Image

DollarAkshay avatar Jun 24 '25 13:06 DollarAkshay