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
21
votes
2 answers

Getting URL Parameters on GatsbyJS

Is there a way to retrieve url parameters passed on pages of project built on GatsbyJS? I'm trying to implement a password reset function on my page using AWS, but they can only send the parameters through a link sent to the user's email. So the…
Lex
  • 329
  • 1
  • 2
  • 11
14
votes
8 answers

Amplify: CORS header ‘Access-Control-Allow-Origin’ missing error even though CORS is enabled in API Gateway and Lambda headers

I'm using Amplify, and have my API Gateway proxying to Lambda. I've enabled CORS on my /{proxy+} and deployed the API. In my Lambda function, I'm setting the appropriate header in my trivial function: import json def handler(event, context): …
Mark Richman
  • 28,948
  • 25
  • 99
  • 159
13
votes
1 answer

What's the difference between aws-amplify-react and @aws-amplify/ui-react?

I saw many docs and places saying to use aws-amplify-react but here on the docs to get start with react I saw this package @aws-amplify/ui-react to use the module withAuthentication (which aws-amplify-react also has) What's the difference between…
Lucas Andrade
  • 4,315
  • 5
  • 29
  • 50
12
votes
1 answer

AWS Cognito cookie storage

I'm trying to set up Cognito to use cookies instead of localStorage for credentials so that I can keep the user logged in between domains, e.g. x.foo.com and y.foo.com. The first step is to get it working on localhost but I'm stuck. The…
Noel Heesen
  • 223
  • 1
  • 4
  • 14
10
votes
2 answers

Amplify.js - CRUD-like urls

I am using amplify.request, and I would like to have CRUD-like URLs when sending data to and from the server. Here is an example: Defining the resource resources = { "document_create" : ['/d/crud/', "POST"], "document_read" …
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
8
votes
3 answers

AWS Amplify: After confirmSignUp, what is the best practice to automatically Sign In a user?

Overview: After the user receives a Verification Code, the user enters the Verification Code, and the Account Status becomes CONFIRMED. Now that the sign up process is completed, I want to automatically sign in the user in after. It seems…
8
votes
1 answer

Error: Invalid AST Node: {"input":"** } on graphql mutation (Amplify client)

I tried to use example schema on api doc("https://aws-amplify.github.io/docs/cli-toolchain/graphql?sdk=js") like below on Many-To-Many Connections type Post @model { id: ID! title: String! editors: [PostEditor] @connection(keyName: "byPost",…
MinLoveSu
  • 243
  • 1
  • 2
  • 15
8
votes
2 answers

amplify 403 comes up that too with a CORS error

Through Amplify CLI added an API that invokes a lambda that reads the dynamo table. It worked well y'day after the deployment in AWS. Today morning it throws 403 error with no changes being made: GET…
stayingcool
  • 2,324
  • 1
  • 21
  • 24
7
votes
2 answers

AppSync - query for all items created within a date range?

I'm trying to query my items (which have fields of AWS DateTime of CreatedAt and UpdatedAt) for all within a certain date range. For example, the past 48 hours. For example, using this schema: type Note @model @searchable @auth(rules: [{ allow:…
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

AWS Amplify - How to render components after sign in

I have an AWS Amplify app using React. I want to be able to only load (or reload) a TaskList component only when the user has successfully signed in. However, the component gets rendered from the very beginning when page loads and when user fills up…
jbernal
  • 785
  • 1
  • 14
  • 29
6
votes
4 answers

AWS Amplify Modular Imports with Vue

This is probably a "JavaScript" question not specific to Vue. I'm trying to import specific modules as an alias but that doesn't appear to be possible. My specific problem is shown below trying to use modular imports with AWS Amplify and Vue. Here…
Cliff Helsel
  • 920
  • 1
  • 12
  • 26
6
votes
1 answer

How to clear amplify.store()?

I need to clear amplifyjs storage, remove all key-values. Smth similar to localStorage.clear(). Thanks in advance.
Ulad Melekh
  • 924
  • 3
  • 17
  • 33
6
votes
1 answer

Does amplify.store return error or catch exception when local storage limit exceeded?

Is there e way to check if local storage limit is exceeded after a call like this: amplify.store("key", object); What happens if i try to store something bigger than the local storage limit ?
Cristi Pufu
  • 9,002
  • 3
  • 37
  • 43
5
votes
2 answers

Is it possible to use only Amplify Auth in a react app in isolation?

I am bit new in this. I have a web app based on react and we have been using authentication using AWS cognito. I was using amazon-cognito-identity-js to signup users in the userpool and for login. Now i am trying to replace that library with aws…
Rasheduzzaman Sourov
  • 1,375
  • 2
  • 15
  • 36
1
2 3
12 13