1.2.0 • Published 6 months ago
grpc-node-oauth2 v1.2.0
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,
});