Skip to content

Commit ddf9b55

Browse files
authored
add getter of token (ktrysmt#190)
1 parent 14975f6 commit ddf9b55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ func injectClient(a *auth) *Client {
169169
return c
170170
}
171171

172+
func (c *Client) GetOAuthToken() oauth2.Token {
173+
return c.Auth.token
174+
}
175+
172176
func (c *Client) GetApiBaseURL() string {
173177
return fmt.Sprintf("%s%s", c.GetApiHostnameURL(), c.apiBaseURL.Path)
174178
}

0 commit comments

Comments
 (0)