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
12
votes
4 answers

How to generate aws-exports.js with existing User Pool in AWS Cognito?

I can not generate aws-exports.js file using existing User Pool of AWS Cognito. How to do it? I tried to generate aws-exports.js file with creating new User Pool of AWS Cognito. But it is not correct thing that I want. Also, I found some explanation…
12
votes
5 answers

No current user for authenticated user in Amplify

I am using react-native and the out of the box aws-amplify-react-native to sigin, signup users. Users are able to authenticate successfully but getting the following error in the signin form "no current user" I pumped up the log level to debug in…
F. K.
  • 694
  • 3
  • 9
  • 23
12
votes
2 answers

How to do filteration in AWS Amplify GraphQL Client

I'm trying to implement GraphQL filter using Amplify GraphQL Client. I got a list of todos and wanted to retrieve list of todos that has status complete. The Documentation only show how to get all items and single item const allTodos = await…
Mohammad Harith
  • 593
  • 1
  • 10
  • 22
12
votes
2 answers

Amplify "Unable to verify secret hash for client"

We have been using Amplify and Cognito to register our users for an Angular6 application deployed to Lambda. The client wanted to transition from email to username as primary user identification. So we created a new user pool / client. I don't…
Arlo Guthrie
  • 1,152
  • 3
  • 12
  • 28
11
votes
3 answers

How to deploy an AWS Amplify app from GitHub Actions?

I want to control Amplify deployments from GitHub Actions because Amplify auto-build doesn't provide a GitHub Environment doesn't watch the CI for failures and will deploy anyways, or requires me to duplicate the CI setup and re-run it in…
thisismydesign
  • 21,553
  • 9
  • 123
  • 126
11
votes
4 answers

Cannot find file './aws-exports' in './src'

I'm on the third module of this AWS tutorial to build a React app with AWS, Amplify and GraphQL but the build keeps breaking. When I ran amplify push --y the CLI generated ./src/aws-exports.js and added the same file to the .gitignore. So I'm not…
Duderino9000
  • 2,535
  • 4
  • 31
  • 37
11
votes
0 answers

Undeclared directive error with WebStorm and aws-amplify

I'm using WebStorm for development and working with React Native application. I use GraphQL, however, the IDE is continuously giving multiple errors: tried to use an undeclared directive The field type 'AWSDateTime' is not present when…
Califlower
  • 467
  • 4
  • 15
11
votes
1 answer

No current User AWS Amplify Authentication Error - need access without login

The Goal Launch a React based order form using AWS amplify. Currently fails to submit entries to the database, due to what may be an authentication problem. I have an AWS Amplify backend that is being used by several front ends - an inventory…
NellyGC
  • 111
  • 1
  • 3
11
votes
2 answers

How to set the trigger of a lambda function in amplify?

I am using the amplify framework from AWS to build a webapp in Vue.js. As for now, I am using the cognito service to authenticate users. I want to trigger a lambda function when the user first create his account. I already created a lambda function…
11
votes
0 answers

AWSMobileClient iOS SDK - Failing to obtain identity id when getting AWS credentials

I have an iOS Swift project using the AWSMobileClient SDK (v2.9.9) installed with Cocoapods. There is one problematic method that is used quite frequently in the app: AWSMobileClient.sharedInstance().getAWSCredentials { (credentials, error) in ...…
jacobsieradzki
  • 1,108
  • 2
  • 10
  • 32
11
votes
2 answers

AppSync GraphQL query with nextToken

My schema.graphql file auto generated below query in graphql/queries.js file by running amplify push command. Here is the schema file that generates query automatically. schema.graphql type User @model { id: String! uuid: String! following:…
Skate to Eat
  • 2,554
  • 5
  • 21
  • 53
11
votes
1 answer

What is the difference between Auth.currentAuthenticatedUser() and Auth.currentSession()?

Prior to every call made to the backend, I used Auth.currentAuthenticatedUser() to obtain idToken.jwtToken and pass it in the header of my request to the backend server for data. Is there a difference between using Auth.currentSession() instead of…
user5735224
  • 461
  • 1
  • 7
  • 16
11
votes
0 answers

AWS Amplify Graphql - TypeError: Must provide Source. Received: undefined

I am doing my queries exactly as in the documentation (https://aws-amplify.github.io/docs/js/api#amplify-graphql-client) but I keep receiving the following error: TypeError: Must provide Source. Received: undefined The query is as follows: export…
Femke
  • 165
  • 3
  • 10
10
votes
4 answers

Unable to resolve path to module '@aws-amplify/ui-react/styles.css'

I am getting the error: Unable to resolve path to module '@aws-amplify/ui-react/styles.css' I am using the amplify authenticator component shown in the following link https://ui.docs.amplify.aws/components/authenticator#quick-start I had already…
Juan Andres
  • 101
  • 1
  • 4
10
votes
1 answer

Generic parameter 'T' could not be inferred - Swift 5.5

I'm trying to get the user sign in and I'm getting the following error: Generic parameter 'T' could not be inferred This is the code: // Gets User signed-in func getUser() async throws -> AuthUser { do { try await…
Arturo
  • 3,254
  • 2
  • 22
  • 61