Questions tagged [amplify-flutter]

22 questions
5
votes
1 answer

Flutter Amplify Cognito, no tokens using fetchAuthSession

I'm trying to implement authentication in my Flutter app using Cognito. I'm authenticating against an existing userPool which I've been successfully using for the past year in my React app. However, with Flutter I'm not able to fetch the user's…
hugo
  • 1,175
  • 1
  • 11
  • 25
5
votes
2 answers

Flutter sign up confirm via phone otp in aws amplify

How to add phone and confirm sign up via phone otp and not with email otp
Midhilaj
  • 4,905
  • 9
  • 45
  • 88
3
votes
0 answers

Subscription error for : GraphQLResponse.Error while Syncing Models from Datastore

I have several models defined in my schema.graphql file. One of which is: type QuizCategory @model { id: ID! QuizCategoryName: String! QuizCategoryDescription: String! QuizCategoryThumbnailUrl: String! QuizCategoryReferenceCode:…
3
votes
1 answer

Check if user phone_number already exist in aws cognito userpool

I am using serverless lambda functions on aws for user authentication in cognito user-pool. I am asking the user only for his phone_number and sending him otp for verification. The problem arises, when the user signs out and sign-in again. I am…
jad
  • 493
  • 3
  • 16
3
votes
1 answer

Amplify Flutter: how to implement Auto Login and obtain authToken

I'm using Amplify Flutter to implement user authentication in my Flutter app and can't figure out the following two things: Auto-login: How do I implement auto-login so that users remain logged in when closing and reopening the app over time (i.e.…
Camron
  • 503
  • 5
  • 19
2
votes
0 answers

Login with different user using amplify_auth_cognito for flutter

When using await Amplify.Auth.signInWithWebUI(provider: AuthProvider.google); to sign in and await Amplify.Auth.signOut(); to sign out, If I sign in, the very first time I am prompted to select a google account. Then if I sign out, every time I…
2
votes
0 answers

Configure amplify-flutter for existing User pool without Cognito Identity pool

How to configure aws amplify in flutter for an existing user pool? There is no identity pool configured for this user pool. I want to configure it without creating an identity pool. Following is my current amplifyconfiguration.dart file, const…
Sandeepa
  • 3,457
  • 5
  • 25
  • 41
1
vote
0 answers

Amplify Flutter returns null when creating a manyToMany item

I am making a chat application which has two tables like below: type User @model @auth(rules: [{ allow: public, operations: [create, read], provider: iam }]) { id: ID! # relation rooms: [Room] @manyToMany(relationName:…
J. Lee
  • 13
  • 3
1
vote
0 answers

Unable to update appClientId locally in Flutter using AWS Amplify

I am using AWS Amplify for Flutter. I generated many configurations using the CLI and pushed them to AWS using amplify push. For some reason, I had to delete the App client created using Amplify after which I manually created an app client in…
1
vote
0 answers

Is it possible to nest simple objects in AWS Amplify without requiring them to have a primary key? (Flutter)

I'm defining a simple schema for AWS Amplify in Flutter. Something like this: type Marker { start: Float! end: Float! } type DataPoints @model { id: ID! name: String! description: String! markers: [Marker!]! } The point is that…
1
vote
3 answers

LateError (LateInitializationError: Field 'customTypeSchemas' has not been initialized.) Amplify Plugins Error

I am trying to connect Amplify Api to my project and keep getting an error that reads LateError (LateInitializationError: Field 'customTypeSchemas' has not been initialized.) (Screenshot of the error is provided after the code snippet) which I take…
1
vote
0 answers

Unable to list objects from a S3 Bucket using AWS Amplify (Flutter)

I am trying to list all the items inside an S3 storage bucket. I have made my bucket public and my storage type is also set to guest but still when I run the Amplify.Storage.list() method it throws an access denied error (403) Here's the…
1
vote
0 answers

Image taking too long to upload on Amplify S3 Storage using Flutter

I have a simple app that takes picture of something and uploads it to the Amplify S3 Storage using its flutter library amplify_storage_s3. The upload time is about 30s-2mins for a jpeg file that is at most 4MB big. Here is the code I'm using to…
Sehmim Al
  • 11
  • 1
0
votes
2 answers

Extract value of an element from object instance

Here is my code to get the current users phone number. Future getCurrentUser() async { try { AuthUser user = await Amplify.Auth.getCurrentUser(); print(user.signInDetails); } on AuthException catch (e) { …
Sumchans
  • 3,088
  • 6
  • 32
  • 59
0
votes
0 answers

Aws Amplify Listen to Auth State changes

Is there a similar function for aws-amplify as the authStateChanges from firebase? I only did find the Auth-Events but this is a StreamSubscription it does not return a AuthUser object back
Georgios
  • 861
  • 2
  • 12
  • 30
1
2