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
5
votes
1 answer

Cognito paswordless auth via link

I'm trying to implement auth via link without password. E.g. user enter his email -> cognito send an email with link that user can click and login. It It is supported by cognito via custom challenge. E.g.…
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…
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
2 answers

How to open the sign up page of an Amazon Cognito Hosted UI directly?

In an app I am trying to have separate buttons to link to the sign up and sign in pages respectively of an Amazon Cognito User Pools' Hosted UI but so far I can only link to the sign in page. I am using the AWS Amplify Package from npm and my code…
4
votes
1 answer

AWS S3 pre-signed URL expires due to short authentication token expiration on Amplify

I have a ReactJs application that retrieves an S3 URL from the API and get a pre-signed version of it using the Amplify Storage library. This URL is the source of a video, the code is something like this: Storage.get( …
4
votes
0 answers

Unable to setup AWS-amplify MFA - issue with the Auth.confirmSignIn function

I'm having a problem with my adding MFA to my site which manages authentication with AWS Amplify. I've followed the example here and created the code below to handle both users who have MFA enabled, and those that don't. const Signin = props =>…
4
votes
1 answer

AWS AppSync Subscription fails during handshake

I'm trying to set up a graphql subscription but I'm getting the error: Unhandled GraphQL subscription error Error: Error during subscription handshake I'm using AWS Cognito User Pools for the authorisation. To create the Subscription I'm using:…
adamdaly
  • 315
  • 2
  • 12
4
votes
1 answer

Having SignIn issues with Amplify-js with a react-native project. TypeError: cannot read property 'USER_ID_FOR_SRP' of undefined

Describing the Issue After switching to Amplify from cognito-js ive come across a problem thats been very tricky for my level. i finshed setting up all the Auth. methods (signup, signin, forgetpassword, send code, ...). i managed to get the signup…
unSensei
  • 131
  • 8
4
votes
1 answer

How to filter a non-scalar type in AppSync / Amplify

I am using aws-amplify to define my appsync schema. I have following simplified schema: type Country @model { id: ID! name: String! code: String! tracks: [Track] @connection(name: "CountryTrack") } type Track @model id: ID! name:…
4
votes
3 answers

AWS Amplify MissingRequiredParameter userId error

I'm following the guide for starting with Interactions. When I call the send method on Interactions, I get the following error: (node:27796) UnhandledPromiseRejectionWarning: MissingRequiredParameter: Missing required key 'userId' in params It…
Jefftopia
  • 2,105
  • 1
  • 26
  • 45
4
votes
1 answer

Persist AWS Cognito User with Amplify

I've been following the Serverless Stack tutorial and can get a positive response with calling Auth.signIn(username, passsword) The current workflow we have is that the user will need to reset their password as accounts will be handed out. The…
4
votes
1 answer

Amplify.js publish subscribe not working when publish and subscribe are in two separate files

I am trying to get Amplify.js publish/subscribe to work with 2 files. I can get it to work when the code is is one file, but not when publish is in one file and subscribe is in another file. Here is the code where the call to subscribe and publish…
Ken Johnson
  • 425
  • 3
  • 12
4
votes
1 answer

JavaScript function signatures in WebSharper

I am creating an ampify.js binding for the WebSharper. (https://github.com/aph5nt/websharper.amplifyjs). While testing my extension I found one issue with publish / subscribe implementation. I declared a subscription handler: let subscribeFn…
aph5
  • 771
  • 2
  • 7
  • 23
4
votes
2 answers

amplifyjs decoders and ajax beforeSend

Alright, working on getting amplify decoders. Strange issue. If I have a beforeSend attached to my request, the decoder does not fire. remove the beforeSend and the decoder fires. Here are the two examples. With no beforeSend.…
Sujesh Arukil
  • 2,469
  • 16
  • 37
4
votes
1 answer

AmplifyJS , remove a stored object

I started using amplifijs and I successfully stored and retrieved my objects in the storage, but I don't know ho to remove them by name. I used this syntax: amplify.store("name",{valName1:"val1", ...}); var storage = amplify.store("name"); var val1…
Khasha
  • 1,559
  • 1
  • 12
  • 19
1
2
3
12 13