Questions tagged [amplifyjs]

AmplifyJS is a set of components designed to solve common web application problems with a simplistic API.

Amplify's goal is to simplify all forms of data handling by providing a unified API for various data sources. Amplify's store component handles persistent client-side storage, using standards like localStorage and sessionStorage, but falling back on non-standard implementations for older browsers. Amplify's request adds some additional features to jQuery's ajax method while abstracting away the underlying data source.

http://amplifyjs.com/

187 questions
2
votes
1 answer

How to Override Amplify Sign In Page

I am using the newer version @aws-amplify/ui-react, not the old version which was aws-amplify-react. In the older version you could extend the SignIn and SignUp pages, change the ui to whatever you want, and essential just call the super methods…
Billy C
  • 35
  • 6
2
votes
0 answers

Why does the private storage path not match the Cognito user ID? How do I access private level files?

I am writing to a private S3 bucket. When trying to read the path has a different UUID from my current Cognito user ID. Any ideas why that is? And how do I access those files correctly? I am trying: import Storage from '@aws-amplify/storage'; const…
userAK47
  • 31
  • 3
2
votes
1 answer

How do you prevent updates to the ownerField of an AWS Amplify GraphQL API?

I created a GraphQL API using AWS' Amplify. In the schema, I have a Comment model that looks like this: type Comment @auth(rules: [{ allow: owner }, { allow: private, operations: [read] }, { allow: public, operations: [read] }]) @model …
2
votes
2 answers

How do you configure Amplify using only the auth package?

Using just the auth package (not aws-sdk) how can I configure Amplify with my credentials? const { Auth, // configure? } = require('@aws-amplify/auth')
lovelikelando
  • 7,593
  • 6
  • 32
  • 50
2
votes
2 answers

Using AWS Amplify with API Gateway

I'm looking at the documentation for AWS Amplify and am confused about the correct way to use Authentication to call an API Gateway Endpoint. At the bottom of the page it says this: THIS IS NOT A RECOMMENDED ARCHITECTURE and we highly recommend you…
Chris Lang
  • 384
  • 2
  • 19
2
votes
1 answer

How can I get AWS Amplify's DataStore to sync between user sessions in React?

Using aws-amplify@3.3.11 and @aws-amplify/datastore@2.9.0 with Cognito User Pools, I can do CRUD operations on model instances, and confirm they make it to the cloud. However, the events don't seem to sync back down from the cloud when I'm logged in…
Jim J
  • 546
  • 3
  • 11
2
votes
2 answers

Aws amplify signIn method returns Incorrect username and password while federatedSignIn (Hosted UI) works

I am using aws cognito for authentication. I have two environment for development and production hosted in two different region. Development in us-east-1 Production in us-west-2 I want to change cognito hosted UI authentication (federatedSignIn) to…
2
votes
1 answer

Custom UI for AWS Amplify with Authenticator wont start my app after login

I have created my own Custom UI for AWS Amplify. I am following the amplify guide on how I should do this, namely by using Authenticator, overriding the showComponent() methods of 'SignIn' and 'RequireNewPassword'. This all works well. I can log in…
2
votes
1 answer

Storage.list() returning an empty array

I am trying to make a webpage to view all of the files in a Cognito accounts private folder in S3. I'm using the Amplify Auth and Storage plugins, and I know they are both configured properly because I already have file upload working. I found this…
2
votes
0 answers

Best way to access enum in Amplify graphql schema

We are using enums in our graphql schema in Amplify/AppSync. We are confused as to what Amplify enforces and how to use the enums. Simply saving the string values works fine but we'd really like to limit available options to enums to add integrity…
GregHouse
  • 295
  • 1
  • 2
  • 15
2
votes
1 answer

aws appsync combine filter operators

Is it possible in AWS appsync / amplify to combine filter operators, like: const filterInput = { or:[ { and: [ {createdById: { eq: userID }}, {chatWithId: { eq: chatWithUser.id }} …
2
votes
1 answer

jQuery is not defined in amplify.js package of Meteor 0.8.0.1

In completely new Meteor project with just amplify.js package added, tehre is: Uncaught ReferenceError: jQuery is not defined amplify.js:830 Any guesses what's wrong?
2
votes
2 answers

Amplifyjs posting formData

I am newbie to web development and I have a have a problem when saving a file to database. I am using MVC 4, knockoutjs 2.3.0, jquery 2.03 and amplifyjs 1.1.0. Here is how I want it to be done. In my upload page I have a form:
user2227138
  • 567
  • 1
  • 4
  • 7
2
votes
0 answers

Unsubscribing in Amplify.js - Prevent stacking of subscribed events

I can't get my head around on how to unsubscribe from events using Amplify.js. The events keep stacking up and a simple amplify.unsubscribe as per the documentation is not working. I usually use anonymous callbacks but thought a named callback will…
Sparda
  • 608
  • 2
  • 12
  • 25
2
votes
2 answers

MeteorJS and AmplifyJS reactive

So I am using the amplifyjs package for meteor. I am still fairly new to meteor and am having trouble making it a reactive context. I am using the amplify.store( string key ) So when I make changes to this or add a value I would like to have the…
Jonovono
  • 3,437
  • 5
  • 42
  • 64