Closed tameem92 closed 3 years ago
How did you solve it?
Providing the redirectUri
prop with postmessage
and changing the same property on the server solved the problem. Found the solution here thanks to jedashford
Example props:
<StyledGoogleButton
clientId={CLIENT_ID}
onSuccess={onGoogleSSOResponse}
onFailure={onGoogleSSOResponse}
cookiePolicy={'single_host_origin'}
buttonText="Log in with Google"
responseType="code"
prompt="consent"
accessType="offline"
redirectUri="postmessage"
/>
@filipkowal 's answer is correct. Thank you 👍
Hi, I am using the library for a simple use-case as shown below. But the redirect URI always gets tagged with a weird
storagerelay://
even though I specify the URI as "https://localhost:3000` it turns into the following. This in turn causes a redirect_uri mismatch when a code is returned.Here is the full usage of the library:
Does anyone have any idea why it keeps changing the redirect URI? It seems like it's happening in this library or the
gapi
library from google. Any help would be appreciated - thank you.