- Newest
- Most votes
- Most comments
The error you're encountering suggests that there's an issue with the authentication setup for your Amplify project. The "No credentials provided" error typically occurs when the AWS SDK cannot find the necessary credentials to make API calls.
To resolve this issue, you need to ensure that your Amplify project is properly configured with the correct authentication settings. Here are some steps you can take:
-
Make sure you've added authentication to your Amplify project. You can do this by running
amplify add authin your project directory and following the prompts. -
After adding auth, make sure to run
amplify pushto update your backend and generate the necessary configuration files. -
Your awsconfig file should contain more than just the region. It should include information about your Cognito User Pool and Identity Pool. Make sure you're importing the correct awsconfig file that Amplify generates.
-
In your main App component or entry point, ensure you're configuring Amplify correctly. It should look something like this:
import { Amplify } from 'aws-amplify'; import awsconfig from './aws-exports'; Amplify.configure(awsconfig);
-
If you're allowing unauthenticated access, make sure you've configured the IAM roles correctly. The unauthenticated role should have the necessary permissions to access the Face Liveness service.
-
Check that you've set up the correct IAM permissions for the Face Liveness service. This includes permissions for both authenticated and unauthenticated roles if you're using them.
-
Ensure that you're using the latest version of the Amplify libraries and SDKs, as older versions may not support the Face Liveness feature correctly.
If you've followed these steps and are still encountering issues, you may need to check your network connectivity and ensure that your application can reach the AWS services. Also, double-check that you're using the correct AWS region in your configuration.
Remember that the Face Liveness feature requires the use of the Amplify SDK, so make sure it's properly integrated into your project.
Sources
Face Liveness FAQ - Amazon Rekognition
Detect real users with AWS Amplify and Face Liveness | Front-End Web & Mobile
answered 2 years ago
Relevant content
asked 2 years ago
asked a year ago
asked 2 years ago

I already checked and configured again and even ran the amplify push command and everything is fine, however, I still have the same problem.