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

prompt: 'none' not working for useGoogleLogin

Open ChenCodes opened this issue 1 year ago • 6 comments

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',
  })

ChenCodes avatar May 07 '24 21:05 ChenCodes

Facing the same issue here

RubhiniP avatar Nov 20 '24 07:11 RubhiniP

ditto

swangy avatar Dec 03 '24 00:12 swangy

bump

dylviz avatar Dec 20 '24 20:12 dylviz

Same here

maximeburri avatar Jan 04 '25 15:01 maximeburri

Bump :)

FurtunaDaniel avatar Feb 05 '25 13:02 FurtunaDaniel

+1

fatpandaria avatar Jun 18 '25 10:06 fatpandaria