🧹 cleanups
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import { IsInt, IsString } from 'class-validator';
|
||||
|
||||
/**
|
||||
* Defines a auth object
|
||||
*/
|
||||
export class Auth {
|
||||
/**
|
||||
* access_token - JWT shortterm access token
|
||||
*/
|
||||
@IsString()
|
||||
access_token: string;
|
||||
/**
|
||||
* refresh_token - longterm refresh token (used for requesting new access tokens)
|
||||
*/
|
||||
@IsString()
|
||||
refresh_token: string;
|
||||
/**
|
||||
* access_token_expires_at - unix timestamp of access token expiry
|
||||
*/
|
||||
@IsInt()
|
||||
access_token_expires_at: number;
|
||||
/**
|
||||
* refresh_token_expires_at - unix timestamp of access token expiry
|
||||
*/
|
||||
@IsInt()
|
||||
refresh_token_expires_at: number;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
import { IsString } from 'class-validator';
|
||||
|
||||
/**
|
||||
* Defines a Logout object
|
||||
*/
|
||||
export class Logout {
|
||||
/**
|
||||
* access_token - JWT shortterm access token
|
||||
*/
|
||||
@IsString()
|
||||
access_token: string;
|
||||
/**
|
||||
* timestamp of logout
|
||||
*/
|
||||
@IsString()
|
||||
timestamp: number;
|
||||
}
|
||||
Reference in New Issue
Block a user