This is an example of how to use AWS Cognito to provide authentication for rpc_ts APIs. It is also a set of best practices.
git clone https://github.com/aiden/rpc_ts_aws_cognito.git
cd rpc_ts_aws_cognito
yarn
# As we use AWS Cognito, an AWS service, we must provide credentials. See
# `terraform/permissions.tf` for the required IAM permissions.
export AWS_ACCESS_KEY_ID='XXXXXX'
export AWS_SECRET_KEY='xxxxxx'
# Test that an example API behind an AWS Cognito authentication middleware can be accessed.
yarn test
rpc_ts_aws_cognito is licensed under the MIT License.