@reyah/m2m-auth-provider

Reyah SDK M2M authentication provider

Usage no npm install needed!

<script type="module">
  import reyahM2mAuthProvider from 'https://cdn.skypack.dev/@reyah/m2m-auth-provider';
</script>

README

Reyah M2M auth provider

Reyah M2M auth provider for Node.js written in TypeScript

Compile

This project use typescript

yarn install
yarn build

Usage

import Reyah from '@reyah/api-sdk';
import M2MAuthProvider from '@reyah/m2m-auth-provider';

const provider = new M2MAuthProvider('client_id', 'client_secret', ['optional scopes']);
Reyah.Auth.getInstance().useAuthProvider(provider);

Docs

The documentation is generated with Typedoc.

yarn install
yarn run gendoc