Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt: 'none' not working for useGoogleLogin #347

Open
ChenCodes opened this issue May 7, 2024 · 5 comments
Open

prompt: 'none' not working for useGoogleLogin #347

ChenCodes opened this issue May 7, 2024 · 5 comments

Comments

@ChenCodes
Copy link

Hi there,

Thanks for starting this library. I'm trying to find a way to use useGoogleLogin where once the user has authenticated once, they do not need to do it again when useGoogleLogin is called. I see the prop in the documentation that says I should be able to use prompt: 'none' but when I passed it into my useGoogleLogin call it still seems to require selecting a user account each time that I invoke the login method.

Has anyone been able to get useGoogleLogin to work in conjunction with the prompt: 'none' setting?

Any help would be greatly appreciated!

const login = useGoogleLogin({
    onSuccess: (codeResponse) => {
      setAuthCode(codeResponse.code)
    },
    flow: 'auth-code',
    scope: googleLoginScopes,
    prompt: 'none',
  })
@RubhiniP
Copy link

Facing the same issue here

@swangy
Copy link

swangy commented Dec 3, 2024

ditto

@dylviz
Copy link

dylviz commented Dec 20, 2024

bump

@maximeburri
Copy link

Same here

@FurtunaDaniel
Copy link

Bump :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants