MCPcopy Index your code
hub / github.com/coder/coder / SetSessionToken

Method SetSessionToken

codersdk/client.go:202–206  ·  view source on GitHub ↗

SetSessionToken sets a fixed token for the client. Deprecated: Create a new client using WithSessionToken instead of changing the token after creation.

(token string)

Source from the content-addressed store, hash-verified

200// SetSessionToken sets a fixed token for the client.
201// Deprecated: Create a new client using WithSessionToken instead of changing the token after creation.
202func (c *Client) SetSessionToken(token string) {
203 c.mu.Lock()
204 defer c.mu.Unlock()
205 c.SessionTokenProvider = FixedSessionTokenProvider{SessionToken: token}
206}
207
208func prefixLines(prefix, s []byte) []byte {
209 ss := bytes.NewBuffer(make([]byte, 0, len(s)*2))

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45