From ea9955c1643bbfe30161c04c3d8bcc8ad1590c57 Mon Sep 17 00:00:00 2001 From: tyler Date: Fri, 24 May 2024 11:36:04 -0400 Subject: [PATCH] Added fields to logged-in response --- client.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"` }