mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00

Add number type alias TimestampMillis Remove solved ToDos Change AuthToken and AuthTokenDto to use Date Rename authService unit tests Signed-off-by: Philip Molares <philip.molares@udo.edu>
22 lines
410 B
TypeScript
22 lines
410 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { IsDate, IsOptional, IsString } from 'class-validator';
|
|
|
|
export class AuthTokenDto {
|
|
@IsString()
|
|
label: string;
|
|
@IsString()
|
|
keyId: string;
|
|
@IsDate()
|
|
createdAt: Date;
|
|
@IsDate()
|
|
@IsOptional()
|
|
validUntil: Date;
|
|
@IsDate()
|
|
@IsOptional()
|
|
lastUsed: Date;
|
|
}
|