how are you? Im doing a proof of concept using React and Cognito Hosted UI. I have this code here using react router dom: Im using S3 as a static website hosting, thats why i point to S3 cloudfront distribution apex. Then, in my App function (residex inside App.js file), i make this validation every times the user access, to
Tag: amazon-cognito
session.isvalid() is always valid amazon cognito
The problem is that even after expiration time that is 5 min for ID token and access token, the session is still validated for some reason I cannot understand. Can someone help me what should I Do? I tried waiting for 5 min or more to check if token has expired or not but it still says that it is
NotAuthorizedException Incorrect username or password amazon-cognito-identity-js
I have been able to log in and log out for a while with the exact same email and password combination. However, now, every time I try to log in (I tried the following cases: disabled my user on the console, reset my users passcode on the console) I get the error:NotAuthorizedException: Incorrect username or password. To check if I
Getting URL Parameters on GatsbyJS
Is there a way to retrieve url parameters passed on pages of project built on GatsbyJS? I’m trying to implement a password reset function on my page using AWS, but they can only send the parameters through a link sent to the user’s email. So the flow would be like this : User triggers Forgot Password -> AWS sends email
How to use the code returned from Cognito to get AWS credentials?
Right now, I’m struggling to understand AWS Cognito so maybe someone could help me out. I set a domain to serve Cognito’s hosted UI for my User Pool like what’s described here. So when I go to https://<my-domain>.auth.us-east-1.amazoncognito.com/login?response_type=code&client_id=<MY_POOL_CLIENT_ID>&redirect_uri=https://localhost:8080 I get a login page where my users can login to my app with Google. That part is working great. I’m confused