diff --git a/client.go b/client.go index 71b25d3..eb6022c 100644 --- a/client.go +++ b/client.go @@ -273,11 +273,17 @@ func (c *Client) userLogout() error { return nil } +type LoggedInResponseData struct { + Username string `json:"username"` +} + type LoggedInResponseUser struct { - LoggedIn bool `json:"logged_in"` + ID string `json:"id"` + LoggedIn bool `json:"logged_in"` } type LoggedInResponse struct { + Data LoggedInResponseData `json:"data"` User LoggedInResponseUser `json:"user"` }