Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    René Goretzka
    @renegoretzka
    i updated aws-amplify regarding to this: aws-amplify/amplify-js#4962 and it is still not working
    Henry Paulino
    @corasan
    I need help setting up Firebase Auth + Amplify GraphQL. I'm trying to log in using federated sign in using securetoken.google.com/PROJECT-ID as the provider, and it seems to log in alright because when I call Auth.currentAuthenticatedUser() I get the token, and also when listening to Hub event I get the token. My problem is making authenticated requests to the GraphQL API.
    Henry Paulino
    @corasan
    const signIn = async () => {
      try {
        const tokenResult = await currentUser?.getIdTokenResult()
        await Auth.federatedSignIn('securetoken.google.com/PROJECT-ID', {
          token: tokenResult?.token,
        })
        const res = await Auth.currentAuthenticatedUser()
        console.log('token', res.token) // eyjhxxxxxxxxxx...
      } catch (error) {
        // ...
      }
    }
    const client = new AWSAppSyncClient({
      url: AppSyncConfig.aws_appsync_graphqlEndpoint,
      region: AppSyncConfig.aws_appsync_region,
      auth: {
        type: AppSyncConfig.aws_appsync_authenticationType,
        jwtToken: () => getToken(),
      },
    })
    Henry Paulino
    @corasan
    when calling Auth.currentSession() I get "No current user" though, could my problem be related to that?
    Also, I do see the token in the Authorization header when I attempt to fetch data
    Andrea Chiumenti
    @achiumenti1_gitlab
    hello
    I need some help with Auth because it's happening something odd in my application . I'm successfully signing in a user poll with signIn method. I've added the account from amazon web console and challengeName is set to NEW_PASSWORD_REQUIRED
    Andrea Chiumenti
    @achiumenti1_gitlab
    the problem is that when I try Auth.changePassword(username, oldPassword, setNewPassword); I've the following exception : Uncaught (in promise) TypeError: user.getSession is not a function
    Andrea Chiumenti
    @achiumenti1_gitlab
    also calls like Auth.currentSession() fail with a Uncaught (in promise) No current user
    please help me
    @corasan did you find a solution ?
    Henry Paulino
    @corasan
    @achiumenti1_gitlab not yet, man. Still stuck trying to figure it out.
    Andrea Chiumenti
    @achiumenti1_gitlab
    @corasan. I did it. On signIn I had to call Auth.completeNewPassword because challengeName === 'NEW_PASSWORD_REQUIRED' . See https://docs.amplify.aws/lib/auth/manageusers/q/platform/js#complete-new-password
    Ryan Rentfro
    @SourceCode
    Does anyone have any examples of using Amplify in Multi-tenant - pooled data - setup. We are working on building an app with the same type of authentication as slack. (Create your sub-domain, create your space, users can join that space). I have only found a few medium articles that are dated, older github issues, and some discussion at reddit. Hoping someone has a code example I can review for reference on the setup.
    Mike Mayori
    @mmayorivera
    Ryan Rentfro nice use case Multi-tenant
    hello andrea chiumenta , i will suggest you to use passworld less flow , since will simplify your implementation
    Bob Mattax
    @rlmattax
    There are lots of similar posts above, but maybe not quite the same. I have an app I'm making in JS and authenticating using FB. So I have an authenticated user, but when I try to interact with my GraphQL API its complaining about no credentials. Feels like its a simple step I'm missing to make sure the credentials are present when I make the API call. Any tips?
    @corasan I think we're in the same place. Any luck?
    RAMESH CHATHURANGA
    @Ramesh-Chathuranga
    @rlmattax i think , your problem is ocurred with your api key if you use appsync key it may be expired. If you use i am key check the key again.
    Bob Mattax
    @rlmattax
    In awsexports?
    Bob Mattax
    @rlmattax
    @Ramesh-Chathuranga - currently my appsync is setup to use the cognito_pools auth --- aws_appsync_authenticationType: 'AMAZON_COGNITO_USER_POOLS'
    Henry Paulino
    @corasan
    @rlmattax I'm using OpenID for authentication, might be a similar problem. I authenticate the user through firebase (I also tried using google's id token), I get a valid token and the federated login is successful, in my indetity pool I see that the Google sign in went through because I see the identity that was created, however, when I try to interact with my GraphQL API I get unauthorized error.
    This is frustrating because I seem to be doing everything the proper way, based on documentation and a lot of googling but my tokens are not valid for AppSync for some reason.
    Bob Mattax
    @rlmattax
    @corasan - yes. exactly the same except the federated login provider.
    @corasan - please lmk if you figure anything out
    Henry Paulino
    @corasan
    @rlmattax will do!
    Mark Dunbavan
    @mdunbavan
    Hey everyone, are there any videos that explain how to setup OPT with Amplify? I have tried with what is currently in the docs but it doesn't seem to work with my current setup. I wondered if there was a better breakdown of stuff
    Lorenzo Tanganelli
    @tangalor
    Hello, we are trying to obfuscate an app that includes a library developed by us and that library includes aws-amplify android sdk to send data to S3. We use the following dependencies ->
    'com.amplifyframework:core:1.0.0'; 'com.amplifyframework:aws-storage-s3:1.0.0'; 'com.amplifyframework:aws-auth-cognito:1.0.0'. We are using R8 to obfuscate our app (minifyEnabled true) and we used it in many other apps without any issues but for this app we are getting a problem with the obfuscation and we lost many days to understand where was the problem. After many investigations, finally we found that removing from the project dependencies the aws-amplify android sdk, obfuscation it's correctly working again. We looked for a solution online but we can't solve this. Why if we include the aws-amplify android sdk, the obfuscation doesn't work anymore for the entire app? Can you help us to solve this without removing aws-amplify? Thanks a lot
    Bob Mattax
    @rlmattax
    @corasan - do you know if there is some specific command maybe that we have to run to exchange the temporary creds for the AWS resource creds? https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-scenarios.html#scenario-aws-and-user-pool
    Bob Mattax
    @rlmattax
    Error Image
    David Wells
    @DavidWells
    Hello friends. Is anyone using Amplify analytics? Events are flowing through my pinpoint app but it appears that the "events" filter with the list of available events is broken in the events view and for journeys. The list is not populating with the "test-events" or any custom event name I send through
    image.png
    ^ specifically this dropdown
    Has anyone seen this issue before? This was working before but now the list just won't update. It seems like an API or UI issues on AWS side. As you can seen in chart below the events are flowing through
    David Wells
    @DavidWells
    ^ Figured this out. It appears that it takes about an hour for this UI to reflect the latest events. The count updates almost immediately but the event names have a large lag
    Bob Mattax
    @rlmattax
    Nice
    Henry Paulino
    @corasan
    @rlmattax no idea man. I actually gave up and I'm building my own GraphQL API from scratch
    Mark Dunbavan
    @mdunbavan
    Is anyone online who could help with an issue please?
    Manjiri 1101
    @Manjiri1101
    image.png
    Hello, I have been getting error as "Unhandled Rejection (Error): No credentials" while I was working with GraphQL API's in my react app. Can anyone please give me solution for this. " /src/GraphQLAPI.ts:138" getting error on line 138-> " if (typeof opt.graphql_headers !== 'undefined' && "
    Cloudslayer
    @thecloudslayer
    @Manjiri1101 did it ever work?
    Manjiri 1101
    @Manjiri1101
    No
    Manjiri 1101
    @Manjiri1101
    Sorry, I am having new trouble now, when I am running my react app, I am getting "Module not found: Can't resolve '@aws-amplify/api'" error.
    Can anyone help woth the above?
    Max Johansen
    @macsj200

    Hi there everyone, I'm wondering if I could get some help with this aws-amplify/amplify-js#3977

    Essentially the issue is that I'm trying to upload files from react-native to S3 via the Storage API but things start breaking down when I introduce Blobs.

    I'm thinking it may be as simple as adding a ContentEncoding: 'base64' to the underlying provider implementation if the options are set as such. I actually have a local branch https://github.com/macsj200/amplify-js/tree/fix/maxj/amplify-put-encoding with the changes in place but I'm struggling to get a local copy of amplify-js to build.

    Matt Auerbach
    @mauerbac
    Hello - I'm from the Amplify Team. we've moved to Discord. https://discord.com/invite/amplify
    Shah zaib
    @Zaib10
    Hi there everyone, How can we connect existing tables in dynamoDB using graphql transforms? @model create new table in dynamoDB when i run command "amplify push " i don't want to create new tables .
    Using "directive @model" i'm facing this issue ["Error: Unknown argument "table" on directive "@model"."]