Cleanup: Renamed Responses to represent their response nature

ref #11 #13 #14
This commit is contained in:
2020-12-05 18:49:13 +01:00
parent 0e924449d6
commit 61e7ae4f86
6 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
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;
}