When i try to get access token getting this issue.
I'm using below code:
RestClient rc = null;
if (!string.IsNullOrWhiteSpace(Config.Instance.server))
{
rc = new RestClient(Config.Instance.appKey, Config.Instance.appSecret, Config.Instance.server);
}
else
{
rc = new RestClient(Config.Instance.appKey, Config.Instance.appSecret, Config.Instance.production.Value);
}
await rc.Authorize(Config.Instance.username, Config.Instance.extension, Config.Instance.password);
Assert.NotNull(rc.token.access_token);