We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I using aws-amplify && react-native-google-signin I getting every time Invalid login token. Not a valid OpenId Connect identity token.
Example of my code:
GoogleSignin.configure({ webClientId: '**************', });
signUpViaGoogle = async () => { try { const userInfo = await GoogleSignin.signInSilently(); await GoogleSignin.getTokens().then(user => { Auth.federatedSignIn('google', {token: user.accessToken}) .then((result: any) => { console.log('result => ', result); }) .catch((err: any) => { console.log('err 1 => ', err); }); }); };
can someone help me?
The text was updated successfully, but these errors were encountered:
You're passing the wrong token to cognito - you need to pass the id token rather than the access token. Take a look at this example here (the getAWSCredentials function is the relevant bit): https://docs.amplify.aws/lib/auth/advanced/q/platform/js#google-sign-in-react
getAWSCredentials
Sorry, something went wrong.
No branches or pull requests
When I using aws-amplify && react-native-google-signin I getting every time Invalid login token. Not a valid OpenId Connect identity token.
Example of my code:
GoogleSignin.configure({ webClientId: '**************', });
can someone help me?
The text was updated successfully, but these errors were encountered: