Skip to content

Commit 7ea81d2

Browse files
committed
Deprecate SetSessionToken
1 parent 0323ac1 commit 7ea81d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codersdk/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func (c *Client) SessionToken() string {
177177
}
178178

179179
// SetSessionToken sets a fixed token for the client.
180+
// Deprecated: Create a new client instead of changing the token after creation.
180181
func (c *Client) SetSessionToken(token string) {
181182
c.SetSessionTokenProvider(FixedSessionTokenProvider{SessionToken: token})
182183
}

0 commit comments

Comments
 (0)