grpc-node-oauth2

JSON →
library 1.2.0 ·javascript
verified Jun 7, 2026

gRPC interceptor for OAuth 2.0 client credentials flow in Node.js. Current version is 1.2.0. This library provides a gRPC interceptor that automatically manages OAuth 2.0 token acquisition, caching, and refresh, attaching the token as a metadata bearer token. It integrates with @grpc/grpc-js and supports TypeScript. Unlike manual token management, it handles retries and token expiry transparently. It is lightweight, with no other runtime dependencies beyond the gRPC library.