mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
Improve auth types
This commit is contained in:
parent
eeeeb352c5
commit
210c7bd692
|
@ -1,3 +1,6 @@
|
|||
/**
|
||||
* Payload the user enters, which is required for login.
|
||||
*/
|
||||
export interface AuthPayload {
|
||||
botName: string;
|
||||
url: string;
|
||||
|
@ -5,11 +8,13 @@ export interface AuthPayload {
|
|||
password: string;
|
||||
}
|
||||
|
||||
/** Response from the API */
|
||||
export interface AuthResponse {
|
||||
access_token?: string;
|
||||
refresh_token?: string;
|
||||
}
|
||||
|
||||
/** Stored Authentication */
|
||||
export interface AuthStorage {
|
||||
botName: string;
|
||||
apiUrl: string;
|
||||
|
@ -19,6 +24,7 @@ export interface AuthStorage {
|
|||
autoRefresh: boolean;
|
||||
}
|
||||
|
||||
/** Auth Storage container */
|
||||
export interface AuthStorageMulti {
|
||||
[key: string]: AuthStorage;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user