You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
400 B
17 lines
400 B
7 years ago
|
export interface TokenGrantPasswordRequest {
|
||
|
grant_type: "password";
|
||
|
username: string;
|
||
|
password: string;
|
||
|
}
|
||
|
|
||
|
export interface TokenGrantRefreshRequest {
|
||
|
grant_type: "refresh";
|
||
|
refresh_token: string;
|
||
|
}
|
||
|
|
||
|
export type TokenGrantRequest = TokenGrantPasswordRequest | TokenGrantRefreshRequest;
|
||
|
|
||
|
export interface TokenGrantResponse {
|
||
|
access_token: string;
|
||
|
refresh_token: string;
|
||
|
}
|