{"library":"nestjs-guard-grpc","type":"library","category":null,"description":"GrpcAuthGuard is an agnostic guard for NestJS optimized for gRPC scope, allowing injection of a custom authentication service that implements the IAuthService interface. It reads tokens from gRPC metadata and provides a @GRPCUser() decorator to inject the authenticated user into controller methods. Current version is 0.1.3 (beta). The library is minimal and tightly coupled to NestJS's gRPC microservices, offering a straightforward pattern for token validation (e.g., JWT) without opinionated defaults. Compared to other NestJS guards, this one is purpose-built for gRPC and metadata-based auth.","language":"javascript","status":"active","version":"0.1.3","tags":["javascript","grpc","microservices","nestjs","oauth2","guard"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install nestjs-guard-grpc","imports":["import { GrpcAuthGuard } from 'nestjs-guard-grpc'","import { GRPCUser } from 'nestjs-guard-grpc'","import { IAuthService } from 'nestjs-guard-grpc'","import { UserInterface } from 'nestjs-guard-grpc'"]},{"cmd":"yarn add nestjs-guard-grpc","imports":[]},{"cmd":"pnpm add nestjs-guard-grpc","imports":[]}],"homepage":"https://github.com/mabuonomo/nestjs-guard-grpc#readme","github":"https://github.com/mabuonomo/nestjs-guard-grpc","docs":null,"changelog":null,"pypi":null,"npm":"nestjs-guard-grpc","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}