Files
artcraft-services/vocodes/src/api/SessionState.ts
T
2021-05-18 21:40:52 -04:00

19 lines
358 B
TypeScript

// Responses from the `/sessions` endpoint.
export interface SessionStateResponse {
// API call was successful
success: boolean,
// Whether the user is logged in
logged_in: boolean,
// Extended user details (only if logged in)
user?: UserInfo,
}
export interface UserInfo {
user_token: string,
username: string,
display_name: string,
}