feat: jwt authentication

This commit is contained in:
Hasta Ragil Saputra
2021-12-08 18:08:24 +07:00
parent 5ff23abda5
commit 9510a39d5b
6 changed files with 73 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
import { SetMetadata } from '@nestjs/common';
export const IS_PUBLIC_KEY = 'isPublic';
export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);