grpc-node-oauth2
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

grpc-node-oauth2

gRPC interceptor implementation for OAuth 2.0

Installation

npm i grpc-node-oauth2

Usage

import { createInterceptor } from 'grpc-node-oauth2';

const interceptor = createInterceptor({
  clientId: 'xxx',
  clientSecret: 'yyy',
  tokenUrl: 'https://example.com/token-endpoint',
  retryIntervalMs: 10e3,
  retryMaxAttempts: 10,
});

License

MIT

/grpc-node-oauth2/

    Package Sidebar

    Install

    npm i grpc-node-oauth2

    Weekly Downloads

    29

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    14.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • smnbbrv