Questions tagged [amazon-cognito-identity-js]

37 questions
0
votes
0 answers

AWS Cognito not working in react native (android)

i am using AWS Amplify for authentication in react native app Auth.signIn() method does not give any response its does not give success or error response. In IOS its working fine. In Android its working in simulator but not working in real device…
0
votes
2 answers

AWS API Gateway Authorizer works with Cognito HostedUI but not with access_token from amazon-cognito-identity-js

When I use the Cognito HostedUI, I receive the access_token from URL parameters in callback page and feed it to my API call header as follows: new HttpHeaders({ 'Content-Type': 'application/json', Authorization: access_token // received from…
0
votes
2 answers

Understanding stores, context, sessions, and component hierarchy in Svelte/Sveltekit

I'm familiar with Svelte but completely new to Sveltekit. I'm trying to build a Sveltekit app from scratch using AWS Cognito as the authorization tool without using AWS Amplify, using the amazon-cognito-identity-js sdk. I've got all the…
0
votes
1 answer

amazon-cognito-identity-js setupMFA problems

I am attempting to setup MFA for users after they reset their passcode. The code runs smoothly until I hit mfaSetup, specifically the line user.associateSoftwareToken(). When I pass in 'this' instead of user, I get the following error: Uncaught (in…
0
votes
1 answer

Uncaught (in promise) TypeError: callback is undefined amazon-cognito-identity-js user.completeNewPasswordChallenge

all. Can anyone help me understand why I am getting a Uncaught (in promise) TypeError: callback is undefined in the below code? It does not make it to the on success or on failure clauses. const onSubmitPasscode = (event) => { …
0
votes
1 answer

cognito user session is persisted without storing tokens in localstorage

I am using the amazon-cognito-identity-js library in express/node backend to handle all authentication. Basically when I try to log in on my front end, it logs me in and persists the state without ever storing tokens in localstorage. Is this…
0
votes
0 answers

AWS Cognito: How to delete user by access token in Node.js?

I am managing an application written in Node.js (restful backend) and React (frontend) and use AWS Cognito for user authentication. In the frontend, I have a form which requests my backend to delete a user. The only information the frontend can send…
1 2
3