Skip to content

Commit aa84624

Browse files
committed
Remove ClearSessionToken + test
1 parent 4dcd1fd commit aa84624

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

codersdk/client.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,6 @@ func (c *Client) SetSessionToken(token string) error {
4747
return nil
4848
}
4949

50-
// ClearSessionToken clears tokens and authentication context in the current cline.t
51-
func (c *Client) ClearSessionToken() error {
52-
// If there is no cookie jar defined, just leave it be
53-
if c.httpClient.Jar == nil {
54-
return nil
55-
}
56-
57-
// Otherwise, just clear it out
58-
var err error
59-
c.httpClient.Jar, err = cookiejar.New(nil)
60-
61-
if err != nil {
62-
return err
63-
}
64-
65-
return nil
66-
}
67-
6850
// request performs an HTTP request with the body provided.
6951
// The caller is responsible for closing the response body.
7052
func (c *Client) request(ctx context.Context, method, path string, body interface{}) (*http.Response, error) {

codersdk/client_test.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)