A NestJS guard for Google OAuth2 token validation using google-auth-library. Version 0.1.4 supports Node >=22 and relies on Async Local Storage for context management. Provides a decorator to inject verified token payload. Lightweight alternative to passport with no schema coupling. Likely early-stage (pre-1.0).
npm install nestjs-google-auth-guardNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the GoogleAuthGuard globally in NestJS to protect all routes via bearer token verification.
Upgrade Node to version 22 or later.
Ensure clients send properly obtained Google OAuth2 tokens.
Check decorator usage within proper HTTP request contexts.
Monitor GitHub releases for updates.
Run npm install nestjs-google-auth-guard and ensure your project is ESM (type: module in package.json) or use dynamic import().
Attach a valid Google OAuth2 access token to the request header.
Use named import: import { GoogleAuthGuard } from 'nestjs-google-auth-guard'.