Questions tagged [amazon-cognito-identity-js]
37 questions
4
votes
0 answers
how to add new user to cognito user poll with google token?
xIn a react app I'm trying to set up federated sign-in with Google using AWS Cognito. When a user signs in with Google, the federated sign-in is successful and I receive a token from Auth.federatedSignIn(). However, a new user is not being created…

irfan önk
- 41
- 2
3
votes
1 answer
AWS Cognito forgotPassword strange response when user does not exist
I'm using amazon-cognito-identity-js to reset user password. I call user.forgotPassword() and that all works fine, the user receives a verification code, etc.
However, something strange happens when I enter a non-existing username!
I do everything…

Lovro
- 712
- 1
- 10
- 20
3
votes
1 answer
@aws-sdk/client-s3 S3Client returning Error TypeError: Cannot read properties of undefined (reading 'send')
Following along with the AWS-SDK examples/documentation in a Gatsby app, I have the workflow below setup to upload a file to my S3 bucket from the client directly however, the const data = await client.send(...) is returning Error TypeError: Cannot…

Kirill
- 41
- 1
- 8
2
votes
0 answers
Is it pissible to login using Cognito Social Login without a hosted UI?
I'm using react-google-login and amazon-cognito-identity-js packages to log my users in.
I'd like to use the amazon-cognito-identity-js's auth method, passing the user's email and password, to call Cognito functions and set the tokens to local…

Niteesh
- 21
- 2
2
votes
1 answer
Setting up TOTP MFA with a QR Code using amazon-cognito-identity-js
Issue: I am having difficulty implementing use case 27 from the amazon-cognito-identity-js library, specifically in trying to modify it to use a QR Code. I am able to receive the secret code from "associateSoftwareToken", translate it into a QR…

codiana
- 39
- 7
2
votes
1 answer
Refreshing tokens in Cognito constantly fails with "invalid_grant" / "Invalid Refresh Token" error
I keep on getting an "invalid grant" error, yet for what I can tell I am doing it all as per spec. I can get the tokens just fine:
aws cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --auth-parameters…

Nick G.
- 557
- 9
- 18
1
vote
0 answers
How to refresh AWS SDK JS V3 client credentials using a credential provider?
I am using the AWS SDK JS V3 in the browser in an Angular app along with Cognito to handle user authentication.
I am able to successfully instantiate the CognitoIdentityProviderClient using the fromCognitoIdentityPool credential provider like…

Alex C.
- 11
- 2
1
vote
1 answer
Issue with cognito social login for Apple
I have a website with social login (apple , google , facebook), the social logins are configured in cogntio user pool.
for the website to work it needs name and email from the providers to create account.
google and facebook works fine but for apple…

Sankalp Chari
- 71
- 1
- 6
1
vote
1 answer
how to get user confirmation status from AWS Cognito
I need getting an information about user confirmation status, using amazon-cognito-identity-js
Using this function i can't do it
export const getCognitoUser = (email) => {
const userData = {
Username: email,
Pool: getUserPool()
…

annn
- 63
- 5
1
vote
0 answers
User is not authenticated message in response after succesful authenticateUser method and tokens generated in cognito-identity-js
User is not authenticated message is getting in the response while i'm trying to do updateUserAttribute, deleteUser (authenticated user), verifyUserAttribute, after succesful login authenticateUser method is called and tokens are…

Chaitanya
- 11
- 3
1
vote
2 answers
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…

Christina Stebbins
- 380
- 3
- 14
0
votes
1 answer
eas build Package issue ("Validate that amazon-cognito-identity-js is linked" error message persisting)
I've recently made a local build for my Amplify/React Native/Expo project using eas build. Within the local build, when attempting to sign in using Amplify's Auth.signIn() feature, I am receiving the error: Could not find a native getRandomBase64…
0
votes
1 answer
NotAuthorizedException in Cognito by using vanilla java script
Hi everyone Hope you all doing well.
i am using amazon-cognito-identity.min.js file got from npm package and import in Html page like mentioned below.
Got help from here.