Questions tagged [aws-amplify-sdk-js]

Use this tag to group queries related to AWS Amplify that are related to the JavaScript SDK as opposed to the Amplify CLI or the iOS / Android libraries.

The Amplify framework has several products, including:

  • Amplify CLI (open source)
  • Amplify SDK for JS (open source)
  • Amplify React, Angular, and Vue component libraries
  • Amplify SDKs for iOS / Android (open source)
  • Amplify Console (managed, paid service)

This tag can be used to group queries just related to the second bullet.

87 questions
10
votes
2 answers

Customize email verification page AWS Cognito

I am using Amazon Cognito for user authentication. After the user is registered verification email is sent to his email address. After clicking on the email link he is prompted with this in his browser. How can I customize this page in order to…
9
votes
1 answer

Amazon Cognito - OpenID Connect - Invalid+ProviderName/Username+combination

I am trying to configure the Microsoft Azure AD B2C identity provider in my Cognito user pool. I am using the https://www.npmjs.com/package/@aws-amplify/auth library on my front-end. I have named the new identity provider Microsoft. I have also…
6
votes
1 answer

Unable to use aws-amplify with NextJS 13.4 api routes

I have successfully used pages/api routes in previous versions of NextJS to connect to AWS API Gateway. I'm trying to use new app router to do the same thing in app/api/route. But I'm unable to get the aws-amplify libraries working, i.e. const…
6
votes
0 answers

AWS Amplify - Is there an API to validate the code sent using forgotPassword and change the password after the validation?

I'm using cognito user pools for user management and using the flow of forgotPassword a confirmation code is sent to the user. For UI purposes I need to validate the code that is sent when I call the API ForgotPassword without sending the new…
6
votes
2 answers

How to use existing dynamo db with AWS Amplify and graphql

We have existing database in dynamodb for our application. For one of our new React app, we want to use AWS Amplify and we are trying to use the existing tables. I created a skeleton project and went to backend AWS AppSync console -> Data Sources…
csharpnewbie
  • 789
  • 2
  • 12
  • 33
6
votes
6 answers

AWS amplify datastore wont synchronise with server

So I'm trying to get AWS Amplify's datastore library working with a reactJS web app I'm building. I was sending data to and from the api just fine using the graphql mutations manually, and then I tried to set up DataStore by following this tutorial.…
Sam
  • 1,315
  • 2
  • 13
  • 27
6
votes
0 answers

Using custom Apollo Client with AWS AppSync

Background In a new project I am working on we are looking into using AppSync for our GraphQL server (with Amplify). However, as it depends on an old version of Apollo Client (2.4.6), and Apollo Client has introduced major changes in version 3.0,…
4
votes
0 answers

Unable to query Many to Many relationship in Amplify Datastore

I have 2 model with Many-to-Many Relationship. The 2 model is Order and Product. An Order will have many Product and Product will in many Order. My Goal is : Given a orderID, get a list of productID in the Order So I followed this Amplify guide to…
ken
  • 2,426
  • 5
  • 43
  • 98
4
votes
0 answers

Restrict developers to pull production environment of AWS Amplify

We are creating the backend of our mobile/web app in Amplify and we have two environments there 1- Amplify Prod 2- Amplify Dev Currently all of our developers who have access to amplify can pull both dev and prod environment in their local systems…
4
votes
0 answers

Aws Cognito sign-out and session clear not working

I have integrated Aws Congnito federated authentication with provider in react native, it is working good. Issue is: When i m going to logout and login again it is not asking my login account account details again, it takes directly old account and…
4
votes
4 answers

AWS Amplify tutorial fail to start the client app

I'm trying to follow the AWS Amplify tutorial to create the sample webapp. https://docs.amplify.aws/start/getting-started/installation/q/integration/react When I am up to the step to run the client frontend locally, I got a long list of error. I'm…
3
votes
1 answer

Attempt to recreate AWS Demo ends up recreating error within demo

I started following the demo at https://youtu.be/NLN-q47uPo0 and ran into the (almost) identical error shown at https://youtu.be/NLN-q47uPo0?t=2880 . Anyone know the cause and resolution for it? It appears as if the data storage has not been set up,…
LNI
  • 2,935
  • 2
  • 21
  • 25
3
votes
1 answer

Override CSS in AWS Amplify React UI

I am using @aws-amplify/ui-react package for Auth. I want to override a few CSS classes that come with it. The package heavily uses the CSS variables but I am not able to override them. For example, I want to add the add border-radius to the button.…
Vikas Roy
  • 854
  • 2
  • 10
  • 25
3
votes
2 answers

Set default country code in amplify authenticator signup component

Amplify authenticator is really convenient for common authentication flow. By default, the country code is pre-select to +1, but the apps developed for other countries may want to default to another one. Is there a way to change the default…
ivenxu
  • 639
  • 4
  • 16
2
votes
1 answer

Error when adding mock to Amplify API in React Native project

I'm currently working on a React Native project where I'm using AWS Amplify for my backend API. I am trying to add a mock to my Amplify API for testing purposes, but I encountered an error using this command: amplify mock api resulting in this…
1
2 3 4 5 6