When calling RequestJWTUserToken
, an exception is returned:
Exception: "We call the token API, but the token creation sometimes results in a non-successful HTTP response code," not always.
What could be the issue? We are implementing it as shown below.
var _apiClient = new ApiClient(_baseurl);
token = _apiClient.RequestJWTUserToken(_integratorKey, _userID, _baseurl, Encoding.UTF8.GetBytes(PrivateKey), 1, Scopes);
TokenGeneratedAt = DateTime.Now;