refactor: make sentry report its own package

This commit is contained in:
James Houlahan
2020-04-16 16:27:57 +02:00
parent 4809d97cb1
commit 38f0425670
8 changed files with 56 additions and 46 deletions

View File

@ -494,7 +494,10 @@ func (c *client) DeleteAuth() (err error) {
return
}
// TODO: Need a method like IsConnected() to be able to detect whether a client is logged in or not.
// IsConnected returns whether the client is authorized to access the API.
func (c *client) IsConnected() bool {
return c.uid != "" && c.accessToken != ""
}
// ClearData clears sensitive data from the client.
func (c *client) ClearData() {