Skip to content

nRFCloud/aws-iam-authenticated-api-gateway-fetch

Repository files navigation

@nrfcloud/aws-iam-authenticated-api-gateway-fetch

https://jsr.io/@nrfcloud/aws-iam-authenticated-api-gateway-fetch

Helper function to use fetch against IAM authenticated APIs.

Install with NPM

npx jsr add --save-dev @nrfcloud/aws-iam-authenticated-api-gateway-fetch

Usage

import { iamAuthenticatedApiGatewayFetch } from "@bifravst/iam-authenticated-aws-api-gateway-fetch";
import { fromEnv } from '@aws-sdk/credential-providers'

const res = await iamAuthenticatedApiGatewayFetch(
  creds: fromEnv()
  region: 'us-east-1',
)('https://api.example.com/');

About

Helper function to use fetch against IAM authenticated APIs.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •