Questions tagged [aws-amplify]

AWS framework for rapidly developing backends for mobile and web applications.

AWS Amplify provides the greatest common denominators for mobile backends, including authentication, analytics, notifications, storage, and offline realtime database AWS AppSync.

It works for Android, iOS, and Web clients, and provides integration with popular client runtimes such as React Native, React, Angular, and Ionic.

AWS Amplify provides a modern toolchain, including a powerful CLI and codegen.

See more at their website: https://docs.amplify.aws/

4787 questions
50
votes
4 answers

How to use Amazon Cognito without Amplify

I'm just now diving into Cognito. The AWS setup has been fairly straight-forward, easy. We have a variety of apps, webapps, and services and we'd like those to make use of the Cognito service. I've experience setting up similar with Auth0, but…
Michael Prescott
  • 764
  • 1
  • 6
  • 14
46
votes
9 answers

AuthError - Error: Amplify has not been configured correctly

First I have successfully completed configuring my react application using amplify configure. I did that with the help of AWS Amplify docs. Then I have successfully added authentication to my amplify project, using amplify add auth and amplify push.…
Sahan Amarsha
  • 2,176
  • 2
  • 14
  • 23
46
votes
6 answers

aws-amplify Authentication...how to access tokens on successful Auth.signIn?

I'm trying to figure out how to access the accessToken, refreshToken, and idToken that I receive back from aws-amplify using the Auth library. example in docs: https://aws.github.io/aws-amplify/media/authentication_guide.html example of my…
spencewine
  • 470
  • 1
  • 4
  • 7
38
votes
7 answers

How to change Node Version in Provision Step in Amplify Console

I'm facing the problem that I cant build my Angular app through the AWS Amplify Console: "You are running version v8.12.0 of Node.js, which is not supported by Angular CLI 8.0+. The official Node.js version that is supported is 10.9 or…
Slohrsh
  • 595
  • 1
  • 5
  • 9
33
votes
8 answers

AWS Amplify, how to check if user is logged in?

I've been using the aws-amplify library with ionic and was wondering how I would check if a user is logged in? I'm coming from a firebase background so this is quite different. This is so that I can grant access to certain pages based on the user's…
NeXtMaN_786
  • 661
  • 2
  • 12
  • 23
28
votes
1 answer

AWS amplify deploy failure due to aws-exports

I am trying to deploy my reactJs app to Amplify. I have my Github connected to Amplify. During deployment it shows the following error at Build step: 2020-01-07T19:35:22.127Z [INFO]: Failed to compile. 2020-01-07T19:35:22.129Z [INFO]:…
Telenoobies
  • 938
  • 3
  • 16
  • 33
27
votes
3 answers

React Router DOM not working correctly on Amplify Console AWS

I have deployed react app on Amplify Console following their documentation. The site is deployed and running fine, I am able to navigate using links but when I try to land to any url directly I get redirected to my configured 404 page. Below is the…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
25
votes
2 answers

AWS Amplify - AppSync & Multiple DynamoDB Tables

When initializing a new GraphQL backend via the Amplify CLI, the sample schema defines multiple types with the @model annotation. For example... type Blog @model { id: ID! name: String! posts: [Post] @connection(name: "BlogPosts") } type Post…
25
votes
1 answer

AWS GraphQL: Variable 'input' has coerced Null value for NonNull type 'Input!'

I'm using ReactJS and aws-amplify to execute graphql operations. CODE: import { API, graphqlOperation } from 'aws-amplify'; import { UpdateInput } from './mutations.js'; // Call mutation const input = { /* some values */…
Joseph D.
  • 11,804
  • 3
  • 34
  • 67
24
votes
4 answers

how handle refresh token service in AWS amplify-js

In my react project I am using AWS Cognito user pool for user management, for user authentication, I am using AWS Cognito idToken. after 90min the session will expire, then I need to refresh with new idToken. how to handle the refresh token service…
user9361329
23
votes
5 answers

Make API request to HTTP endpoint from AWS Amplify deployed HTTPS (SSL) Client

I have deployed my Backend/API server in a AWS EC2 instance, which is being loaded without SSL and the url is like, 'http://ec2-67-ap-southeast-3.compute.amazonaws.com' And I have deployed my React Frontend/Client using AWS AMPLIFY Console. Which is…
23
votes
1 answer

Cannot connect Github organization repository to AWS Amplify app

I am trying to create an AWS Amplify application that is connected to a Github organization repository. When I am asked to select a Github repository to connect the app in AWS Amplify I do not see any of my organization's repositories. How do I…
TheNorth
  • 231
  • 2
  • 5
22
votes
4 answers

AWS Amplify: How to delete the environment, when resources are already partially deleted?

TL;DR: How to delete an amplify environment, when some resources of the service have been deleted manually in the console? So, I took a course on egghead to learn the aws amplify CLI. Unfortunately, it doesn't teach you how to delete the environment…
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
20
votes
7 answers

How to add environment variables to AWS amplify?

I have a React/Node app which i am trying to host on AWS amplify. first try, my app deployed but i saw some pages are not loading due to lack of the environment variables. i have added them to the AWS console before deploying and it did not work.…
A Zarqam
  • 338
  • 2
  • 3
  • 12
1
2 3
99 100