UNPKG

@manujdhull/nestjs-pkce-oauth2

Version:

A NestJS plugin to simplify OAuth2 PKCE flow integration, including decorators, guards, and token/session management.

12 lines (11 loc) 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertQueryParams = assertQueryParams; const common_1 = require("@nestjs/common"); function assertQueryParams(requiredParams, query) { for (const key of requiredParams) { if (!query[key]) { throw new common_1.BadRequestException(`Missing required query parameter: ${key}`); } } }