@zigatech/keycloak-auth
Version:
Keycloak authorization library for NestJS. Works out of the box.
9 lines (8 loc) • 355 B
TypeScript
import { Reflector } from "@nestjs/core";
import { Observable } from "rxjs";
import { CanActivate, ExecutionContext } from "@nestjs/common";
export declare class RoleGuard implements CanActivate {
private reflector;
constructor(reflector: Reflector);
canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean>;
}