I am having a problem with the @nuxtjs/auth-next module for connecting via Cognito. It does send me to my cognito login portal and redirects me with to my app with my token value, and type.
However the module doesn't consume it, it doesnt say that I am logged in and doesn't fetch the user info.
Here is my nuxt.config.js
:
strategies: {
awsCognito: {
scheme: 'oauth2',
endpoints: {
authorization: 'https://***********************/login',
token: 'https://***********************/oauth2/token',
userInfo: 'https://***********************/oauth2/userInfo',
logout: 'https://***********************/logout'
},
token: {
property: 'access_token',
type: 'Bearer',
required: true,
maxAge: 3600
},
refreshToken: {
property: 'refresh_token',
maxAge: 60 * 60 * 24 * 30
},
user: {
property: true,
autoFetch: true,
propertyName: false
},
responseType: 'token',
redirectUri: 'http://localhost:3000/callback',
logoutRedirectUri: 'http://localhost:3000/',
clientId: '******************',
scope: ['email', 'openid'],
codeChallengeMethod: 'S256'
}
}