FixedSessionTokenProvider provides a given, fixed, session token. E.g. one read from file or environment variable at the program start. @typescript-ignore FixedSessionTokenProvider
| 21 | // at the program start. |
| 22 | // @typescript-ignore FixedSessionTokenProvider |
| 23 | type FixedSessionTokenProvider struct { |
| 24 | SessionToken string |
| 25 | // SessionTokenHeader is an optional custom header to use for setting tokens. By |
| 26 | // default, 'Coder-Session-Token' is used. |
| 27 | SessionTokenHeader string |
| 28 | } |
| 29 | |
| 30 | func (f FixedSessionTokenProvider) AsRequestOption() RequestOption { |
| 31 | return func(req *http.Request) { |
nothing calls this directly
no outgoing calls
no test coverage detected