We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33cc519 commit ce7e550Copy full SHA for ce7e550
pkg/comdirect/client.go
@@ -135,6 +135,10 @@ func (c *Client) GetAuthentication() *Authentication {
135
return c.authentication
136
}
137
138
+func (c *Client) IsAuthenticated() bool {
139
+ return c.authentication != nil && c.authentication.accessToken.AccessToken != "" && !c.authentication.IsExpired()
140
+}
141
+
142
// Revoke uses the underlying Authenticator to revoke an access token.
143
func (c *Client) Revoke() error {
144
if c.authenticator == nil {
0 commit comments