basic Auth model

ref #12
This commit is contained in:
Philipp Dormann 2020-12-04 22:18:40 +01:00
parent b9bbdee826
commit b0a24c6a74

View File

@ -0,0 +1,21 @@
/**
* Defines a auth object
*/
export class Auth {
/**
* access_token - JWT shortterm access token
*/
access_token: string;
/**
* refresh_token - longterm refresh token (used for requesting new access tokens)
*/
refresh_token: string;
/**
* access_token_expires_at - unix timestamp of access token expiry
*/
access_token_expires_at: number;
/**
* refresh_token_expires_at - unix timestamp of access token expiry
*/
refresh_token_expires_at: number;
}