Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 633 Bytes

File metadata and controls

33 lines (23 loc) · 633 Bytes

Middleware for Relay Modern Network Layer for authentication to AWS IAM

Installation

Install react-relay-auth-iam using yarn or npm:

yarn add react-relay-auth-iam

Usage

How to create the RelayNetworkLayer

import {authIAMMiddleware} from 'react-relay-auth-iam';
const network = new RelayNetworkLayer(
  [
    urlMiddleware(...),
    authIAMMiddleware({credentials: iamCredentials, region: region}),
  ],
  {}
);

License

React Relay Authentication AWS IAM is MIT licensed.