/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
apps/api/src/app/shared/dtos/api-key.ts
13 строк
328 B
Dima Grossman
feat(api-service): rolling secret key rotation behind feature flag fixes NV-8173 (#11770)
05 июл 2026, 14:56
Не верифицирован
05 июл 2026, 14:56
620ffd5
Код
Авторство
О чём код?
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class ApiKey { @ApiProperty() key: string; @ApiProperty() _userId: string; @ApiPropertyOptional({ type: String, description: 'SHA-256 hash of the API key, used to reference a specific key (e.g. for deletion)', }) hash?: string; }