ref #25
This commit is contained in:
1 parent
30928180e6
commit
ac2da0af63
2 files changed
+12
-5
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user