SessionToken returns the currently set token for the client.
()
| 192 | |
| 193 | // SessionToken returns the currently set token for the client. |
| 194 | func (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. |