@@ -202,10 +202,13 @@ func prefixLines(prefix, s []byte) []byte {
202202// responsible for closing the response body.
203203func (c * Client )Request (ctx context.Context ,method ,path string ,body interface {},opts ... RequestOption ) (* http.Response ,error ) {
204204opts = append ([]RequestOption {c .SessionTokenProvider .AsRequestOption ()},opts ... )
205- return c .RequestNoSessionToken (ctx ,method ,path ,body ,opts ... )
205+ return c .RequestWithoutSessionToken (ctx ,method ,path ,body ,opts ... )
206206}
207207
208- func (c * Client )RequestNoSessionToken (ctx context.Context ,method ,path string ,body interface {},opts ... RequestOption ) (* http.Response ,error ) {
208+ // RequestWithoutSessionToken performs a HTTP request. It is similar to Request, but does not set
209+ // the session token in the request header, nor does it make a call to the SessionTokenProvider.
210+ // This allows session token providers to call this method without causing reentrancy issues.
211+ func (c * Client )RequestWithoutSessionToken (ctx context.Context ,method ,path string ,body interface {},opts ... RequestOption ) (* http.Response ,error ) {
209212if ctx == nil {
210213return nil ,xerrors .Errorf ("context should not be nil" )
211214}