is there a way to create valid cognito user with Auth.federatedSignIn response. The response is like so :
{ "identityId": "us-east-1:xx-xxxxx", "accessKeyId": "xxxx", "secretAccessKey": "xx/xxx/x+xxxx", "sessionToken":"xxxxxx" }
code block:
const googleToken = response.credential; const googleData = parseToken(googleToken); console.log('googleData:', googleData); const { email, given_name, exp } = googleData; Auth.federatedSignIn( 'google', { token: googleToken, expires_at: exp }, { name: given_name } ).then((response) => { console.log('federatedSignIn res', response); },
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.