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

Method SessionToken

codersdk/client.go:194–198  ·  view source on GitHub ↗

SessionToken returns the currently set token for the client.

()

Source from the content-addressed store, hash-verified

192
193// SessionToken returns the currently set token for the client.
194func (c *Client) SessionToken() string {
195 c.mu.RLock()
196 defer c.mu.RUnlock()
197 return c.SessionTokenProvider.GetSessionToken()
198}
199
200// SetSessionToken sets a fixed token for the client.
201// Deprecated: Create a new client using WithSessionToken instead of changing the token after creation.

Calls 1

GetSessionTokenMethod · 0.65

Tested by 15

TestUserTailnetTelemetryFunction · 0.36
TestSessionExpiryFunction · 0.36
TestUserOIDCFunction · 0.36
TestUserLogoutFunction · 0.36
TestSubmitToolResultsFunction · 0.36
TestMCPServerOAuth2PKCEFunction · 0.36
TestCSRFExemptFunction · 0.36
TestRateLimitByUserFunction · 0.36