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
0
votes
0 answers

Best practice for refreshing tokens after 60 min idle (javascript + AWS Amplify / Cognito)

I use below (simplified) code with AWS libraries to get access to AWS resources like DynamoDB through browser javascript. The ID/access tokens expire in 60 minutes; the refresh tokens in 30 days (the Cognito defaults). This works mostly fine. AWS…
0
votes
0 answers

How can i integrate an Amazon Lex V2 chatbot in Nuxt 2 using AWS Amplify's chatbot component?

I have successfully integrated an Amazon Lex V1 bot in my Nuxt 2 project using Amplify's chatbot component. However in trying to integrate an Amazon Lex V1 bot, Amplify's chatbot component does not render the bot's responses in the chat window. I…
0
votes
1 answer

Amplify with react - relationship - not able to associate a related item in create form

I am very new to the amplify/react world and stuck on below. How do I attach an existing item in the create form? I have two data models with a 1:1 relationship. In the autogenerated create form I do not see an option to attached an existing…
0
votes
1 answer

How to allow a user to choose a Group Pool on sign-up in VueJS with AWS Amplify?

I am building a VueJS app with AWS Amplify for authentication, and I want to allow users to choose between two group pools (Teachers and Students) when they're signing up. I have already added authentication using amplify add auth and created the…
0
votes
0 answers

AWS Amplify unable to pull backend after remove unused services got error not enough bytes in the stream. expected

After removing unused services, I was unable to push the code (amplify push) and got this error. the command that I run amplify remove notifications amplify remove analytics CLI error (amplify push): ✖ There was an error pulling the backend…
Ahsan Abrar
  • 139
  • 3
  • 13
0
votes
0 answers

Check User Credentials Without Logging In

Is there any way to check if a user's username and password are valid without logging them in? Using: import { Auth } from 'aws-amplify'; Auth.signIn(email, password); Has the issue whereby upon calling that user is signed in causing the currently…
awildestack
  • 61
  • 1
  • 6
0
votes
0 answers

S3 file upload corrupted when using multer to upload via amplify rest api

I'm using react code on the frontend: const formData = new FormData(); formData.append('username', e.target.username.value); formData.append('email', e.target.email.value); formData.append('bio', e.target.bio.value); formData.append('profileImg',…
0
votes
0 answers

AWS Appsync : How use filter with an array?

On my Amplify App, I am use this model: type Post @model { id: ID! title: String! level: Int! categories: [Int!] } It's easy to filter post by level. Example: Retrieve all posts that have level 3 I am using this code: const response =…
seikida
  • 407
  • 6
  • 17
0
votes
1 answer

Appsync Subscriptions do not work with modular AWS Amplify packages

I do have a React application where I want to replace the aws-amplify monolithic package with the module @aws-amplify/ ones. Please note that everything is working if I use the monolithic package. I need: Auth, GraphQL API with…
pfried
  • 5,000
  • 2
  • 38
  • 71
0
votes
1 answer

AWS Amplify & React - Storage.put return 403 Forbidden

I've been searching through the web for an answer but was unable to find something ... so I'm trying here. Sorry if the question has already been solved, it would mean I need to fix my search skills ! The idea of my application: a list of item with…
0
votes
0 answers

Where does AWS Amplify DataStore store its data?

I have been looking for a Firebase Firestore equivalence to AWS World, I came across AWS Amplify and saw the DataStore module. From watching this video I see it does pretty much exactly what I expected, that is being about to have a real-time data…
0
votes
1 answer

Configuring AWS Amplify to use a proxy server for Cognito

I want to setup a service which is accessible from AWS Amplify, that acts as a proxy service to AWS Cognito. The point being, that such a service would provide greater flexibility, along with the option of swapping Cognito out, further down the…
0
votes
1 answer

AWS Amplify Auth Error in Angular project using pre-existing backend: "Error: Amplify has not been configured correctly."

I'm in the process of trying to update a project I built in 2020 that no longer works but I keep running into this issue. [ERROR] 04:09.562 AuthError - Error: Amplify has not been configured correctly. The configuration…
0
votes
4 answers

AWS amplify react - can't start the project

I've installed aws-amplify and aws-amplify-react packages and this is my index.js: import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import Amplify from 'aws-amplify'; import aws_exports…
0
votes
1 answer

How do I disable Submit button in Amplify Default Auth UI?

I want to hide the Submit Button in Amplify Default UI, but not sure how to achieve it. Didn't observe any documentation at Amplify. Here is my code: function App() { return (