UNPKG

@manujdhull/nestjs-pkce-oauth2

Version:

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

16 lines (15 loc) 583 B
import { TokenStoreService } from '../services/token-store.service'; import { Response } from 'express'; export declare class OAuthController { private readonly tokenStore; constructor(tokenStore: TokenStoreService); authorize(pkceData: { codeChallenge: string; codeChallengeMethod: string; state: string; }, res: Response): Promise<void | Response<any, Record<string, any>>>; callback(callbackData: { code: string; state: string; }, codeVerifier: string, res: Response): Promise<Response<any, Record<string, any>>>; }