AWS Cognito: Session: null and refreshToken null after google auth successful authentication


I am an AWS newbie. I am stuck with a problem currently.
After successful authentication using the Google OAuth I see the Session as null and refresh token null.

The response

Response screenshot

If I change the responseType to 'code' from 'token' I get invalid client error.

Snippet from aws-exports file.

oauth: {
    domain: 'xxxxx',
    scope: ['email', 'profile', 'openid'],
    redirectSignIn: process.env.REACT_APP_DOMAIN,
    redirectSignOut: process.env.REACT_APP_DOMAIN,
    responseType: 'code'
  },

Source: JavaSript – Stack Overflow

September 28, 2021
Category : News
Tags: amazon-cognito | amazon-web-services | aws-lambda | javascript | oauth-2.0

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.