18 lines
401 B
TypeScript
Raw Normal View History

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;
}