Questions tagged [amazon-cognito-identity-js]

37 questions
0
votes
1 answer

amazon-cognito-identity-js on React frontend

Is it safe to use amazon-cognito-identity-js on a frontend application given that it will have your user pool and client ID? I am trying to use Cognito in my React app (with a Python backend). I was hoping to keep the Cognito services on the…
Jahill
  • 78
  • 1
  • 7
0
votes
1 answer

Cannot set properties of undefined (setting 'validationData') when trying to authenticate a user against amazon cognito in react js

I wouldn't say I'm new to JS but I haven't stuck with it long enough to be that knowledgeable so hopefully someone here can help. I have recently started making a website with React and I'm getting the following error when attempting to authenticate…
0
votes
1 answer

Cognito Userpool case sensitivity

Are Cognito userpool really case-insensitive by default? I have created a Cognito userpool configuring the email as the only login field, but when I try to login using some uppercase letters in my email I get a login error "Incorrect username or…
0
votes
0 answers

What is causing an issue with amazon-cognito-identity-js@6.2.0 in my React Native app after updating packages?

Updated React native app and packages but facing problem in amazon-cognito-identity-js Kindly help me to resolve my issue Versions "amazon-cognito-identity-js": "6.2.0" "aws-amplify": "^5.2.4", "react-native": "^0.71.8", Thankyou Provide me solution…
0
votes
0 answers

AWS CDK Cognito - create new CfnUserPoolGroup in same stack that creates the UserPool (typescript)

I want to create a few Groups in my AWS Cognito UserPool. I have a stack that is creating the user pool so want to add code similar to [ { groupName: 'administrators', description: 'Members can administor this app…
NULL pointer
  • 1,116
  • 1
  • 14
  • 27
0
votes
1 answer

Did not receive SMS from Cognito even thought it's a successful request

I'm unable to receive an SMS from using resendConfirmationCode method from amazon-cognito-identity-js. Even thought the request was sent successfully with a sample response of { AttributeName: "phone_number", DeliveryMedium: "SMS", …
Irfandy Jip
  • 1,308
  • 1
  • 18
  • 36
0
votes
1 answer

SPA user login with AWS JS sdk for Cognito

I'm trying to implement user login with username and password on a spa using aws cognito, but I keep getting error on the auth flow. Previously I was using 'amazon-cognito-identity-js' and it was all ok, but I'm moving to…
0
votes
1 answer

How can I attach an IoT Core policy to a Cognito Identity Id on a post authentication Lambda trigger for an Amplify deployed web application?

Situation: I have a ReactJS web application that is deployed through AWS Amplify and uses Amplify Studio backend to handle authentication through Cognito services and aws-amplify sdk (sign in, sign up). The web application also implements the use…
0
votes
0 answers

SOFTWARE_TOKEN_MFA 400 error with the MFA integration in cognito pool with reactjs

Please refer to the following image. I was able to successfully integrate the MFA with my Cognito pool and I am getting the OTP as well. Once the OTP is submitted I get the following error message as a 400 bad request. It seems MFA integration is…
0
votes
1 answer

amazon-cognito-identity-js callbacks

I am using amazon-cognito-identity-js and the callback looks something like this... cognitoUser?.getUserAttributes((err, results) => { if (err) { console.log(err.message || JSON.stringify(err)); return err.message || JSON.stringify(err); …
0
votes
0 answers

AWS Amplify Auth.verifyCurrentUserAttributeSubmit returns InternalErrorException

We have a Cognito user pool that supports login with email and phone number. Using Auth.verifyCurrentUserAttributeSubmit we are able to successfully verify code received on email for email change of logged in user. However the same…
suman j
  • 6,710
  • 11
  • 58
  • 109
0
votes
1 answer

Can I specify how to handle an error in a NodeCallback?

I am learning React and Typescript and working on a React, Typescript, AWS Amplify Cognito project and trying to implement this method: public confirmRegistration( code: string, forceAliasCreation: boolean, callback: NodeCallback, …
0
votes
0 answers

Amazon-cognito-identity-js Fails to Authenticate with `NotAuthorizedException` using Correct Username And Password

I am using amazon-cognito-identity-js like so: import {CognitoUserPool, CognitoUserAttribute, CognitoUser, AuthenticationDetails, CognitoUserSession} from 'amazon-cognito-identity-js'; const userPool = new CognitoUserPool({ …
0
votes
1 answer

React native amazon-cognito-identity-js authenticateUser function too slow

I have a problem integrating library "amazon-cognito-identity-js" into react native. The authenticateUser function is too slow depending on the device: Iphone XS: 40 seconds Samsung galaxy A11: 70 seconds The problem is probably in the…
0
votes
0 answers

Cognito hoisted Ui on integration with angular appliocation throwing error 400

I'm trying to integrate cognito hoisted UI with my angular application which has different login screen, so i'm trying to leverage all the login (including normal login and social login) functionalities but not the user interface.But it is throwing…