Now w/ working logout
All checks were successful
continuous-integration/drone/pr Build is passing

ref #25
This commit is contained in:
2020-12-12 19:50:12 +01:00
parent 30928180e6
commit ac2da0af63
2 changed files with 12 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { IsString } from 'class-validator';
import { IsOptional, IsString } from 'class-validator';
import * as jsonwebtoken from 'jsonwebtoken';
import { getConnectionManager } from 'typeorm';
import { config } from '../../config';
@@ -8,7 +8,8 @@ import { Logout } from '../responses/ResponseLogout';
export class HandleLogout {
@IsString()
token: string;
@IsOptional()
token?: string;
public async logout(): Promise<Logout> {
let logout: Logout = new Logout();