Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

425
Views
How to use custom scopes in AWS Amplify with react native

I'm developing a mobile app and I'm planning to have the backend APIs in AWS lambda. I was able to add federated authentication to my app using Cognito and it works. I also want to authorize the lambda API calls by Cognito users. To do that I need to add a custom scope.

On my app I'm using this code to kick off the sign in/sign up flow. But it doesn't take into account the newly added scopes. When I click the sign in button on my app and check the redirected url, it doesn't have the newly added custom scope

Amplify.configure(amplify);
Auth.federatedSignIn()

I have allowed the new scope in Cognito Allowed Custom Scopes for app client settings. I also noted that the aws-exports.js has not been updated with the new custom scope. I tried amplify pull but it didn't update the file. (I'm new to this and I followed tutorials here and there to get this working, not sure if I have missed anything)

How can I get custom scopes working in my app?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!