Relative Content

Tag Archive for amazon-web-servicesamazon-cognitoaws-amplify

Cross region authentication

I have an web application which is deployed in two aws regions. Each application is linked to its own cognito user pool.
Application A <-> User Pool A
Application B <-> User Pool B
This application has a React frontend that uses aws-amplify ( without hosted UI ) to take care of the authentication and all that.

How can I verify user logged in via AWS Amplify & Cognito in backend?

I am currently using AWS Amplify to host a React front-end. I have an AWS Cognito user pool and identity pool set up. Using withAuthenticator from @aws-amplify/ui-react, the front-end requires the user to log in. Once logged in, I can use fetchAuthSession from aws-amplify/auth to retrieve the access token and the identity token, which are both supposed to be JWTs.