This commit is contained in:
2026-03-11 20:42:34 +03:30
parent 8c5f1d4d49
commit 007db7f9bd
30 changed files with 393 additions and 219 deletions
-2
View File
@@ -17,8 +17,6 @@ export class JwtAuthGuard implements CanActivate {
) {}
async canActivate(context: ExecutionContext): Promise<boolean> {
console.log('asd')
const isPublic = this.reflector.getAllAndOverride<boolean>(IS_PUBLIC_KEY, [
context.getHandler(),
context.getClass(),
-1
View File
@@ -21,7 +21,6 @@ export function getAccountIdFromJwt(req: Request, jwtService: JwtService): strin
// const token = authHeader.replace('Bearer ', '')
try {
const payload = jwtService.decode(token) as AccessTokenPayload
console.log(payload)
return payload?.account_id || null
} catch {