mirror of
https://github.com/docmost/docmost.git
synced 2025-11-25 03:11:10 +10:00
switch to nx monorepo
This commit is contained in:
11
apps/server/src/core/auth/dto/login.dto.ts
Normal file
11
apps/server/src/core/auth/dto/login.dto.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { IsEmail, IsNotEmpty, IsString } from 'class-validator';
|
||||
|
||||
export class LoginDto {
|
||||
@IsNotEmpty()
|
||||
@IsEmail()
|
||||
email: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
password: string;
|
||||
}
|
||||
4
apps/server/src/core/auth/dto/tokens.dto.ts
Normal file
4
apps/server/src/core/auth/dto/tokens.dto.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface TokensDto {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
}
|
||||
Reference in New Issue
Block a user