mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
14 lines
307 B
TypeScript
14 lines
307 B
TypeScript
import { ExecutionContext, Injectable } from '@nestjs/common';
|
|
import { AuthGuard } from '@nestjs/passport';
|
|
|
|
@Injectable()
|
|
export class ApiKeyAuthGuard extends AuthGuard('apiKey') {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
canActivate(context: ExecutionContext) {
|
|
return super.canActivate(context);
|
|
}
|
|
}
|