UNPKG

@zigatech/keycloak-auth

Version:

Keycloak authorization library for NestJS. Works out of the box.

12 lines (11 loc) 325 B
import { Request } from "express"; import { Principal } from "./principal.js"; export declare class Auth { private static readonly API_KEY; private static readonly BEARER_TOKEN; private request; constructor(request: Request); validate(): Promise<Principal>; private accessToken; private apiKey; }