1
0
mirror of https://github.com/writeas/go-writeas.git synced 2025-07-27 18:38:40 +00:00
go-writeas/auth.go

13 lines
169 B
Go
Raw Normal View History

package writeas
import (
"net/http"
)
func (c *Client) isNotLoggedIn(code int) bool {
if c.token == "" {
return false
}
return code == http.StatusUnauthorized
}