2021-03-05 11:27:36 +00:00
|
|
|
/**
|
|
|
|
* Represents the credentials used to access the platform.
|
|
|
|
*/
|
|
|
|
export default class Credentials {
|
2021-03-05 12:06:09 +00:00
|
|
|
/**
|
|
|
|
* Username
|
|
|
|
*/
|
|
|
|
username: string;
|
|
|
|
/**
|
|
|
|
* Password of the user.
|
|
|
|
*/
|
|
|
|
password: string;
|
|
|
|
/**
|
|
|
|
* One time token used during login.
|
|
|
|
*/
|
|
|
|
token: string;
|
|
|
|
constructor(username: string, password: string);
|
|
|
|
/**
|
|
|
|
* Fetch and save the token used to log in to F95Zone.
|
|
|
|
*/
|
|
|
|
fetchToken(): Promise<void>;
|
2021-03-05 11:27:36 +00:00
|
|
|
}
|