Describe the bug
Trying to sign in, using Auth.signIn(username, password), and get the error message "No current user".
Checking the network tab shows a 200 POST https://cognito-idp.us-east-1.amazonaws.com/ request, with what seems to be a valid user response:
{"AuthenticationResult":{"AccessToken":".....","RefreshToken":"...","TokenType":"Bearer"},"ChallengeParameters":{}}
Configuring with:
Amplify.configure({
Auth: {
region: 'us-east-1',
userPoolId: process.env.userPoolId,
userPoolWebClientId: process.env.userPoolWebClientId,
mandatorySignIn: true,
cookieStorage,
},
});
I'm somewhat sure that the ids are correct, but im not sure if im missing anything else
Issue was due to using http://localhost:3000, and the default of cookieStorage.secure being true.
Most helpful comment
Issue was due to using
http://localhost:3000, and the default ofcookieStorage.securebeing true.