GetCurrentUser returns the authenticated user's profile.
()
| 1014 | |
| 1015 | // GetCurrentUser returns the authenticated user's profile. |
| 1016 | func (c *Client) GetCurrentUser() (*LoginUser, error) { |
| 1017 | var result LoginUser |
| 1018 | return &result, c.get("/auth/me", &result) |
| 1019 | } |
| 1020 | |
| 1021 | // CheckSession returns the current auth status. |
| 1022 | func (c *Client) CheckSession() (*SessionResponse, error) { |
no test coverage detected