Added fields to logged-in response

This commit is contained in:
tyler 2024-05-24 11:36:04 -04:00
parent 563d9f9413
commit ea9955c164

View file

@ -273,11 +273,17 @@ func (c *Client) userLogout() error {
return nil return nil
} }
type LoggedInResponseData struct {
Username string `json:"username"`
}
type LoggedInResponseUser struct { type LoggedInResponseUser struct {
LoggedIn bool `json:"logged_in"` ID string `json:"id"`
LoggedIn bool `json:"logged_in"`
} }
type LoggedInResponse struct { type LoggedInResponse struct {
Data LoggedInResponseData `json:"data"`
User LoggedInResponseUser `json:"user"` User LoggedInResponseUser `json:"user"`
} }