You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected void ValidateApiKeyIsOauthAccesstoken(bool isConstructor = false) {
string apiKey = _mollieSecretManager.GetBearerToken();
**if (!apiKey.StartsWith("access_")) {**
if (isConstructor) {
throw new InvalidOperationException(
"The provided token isn't an oauth token. You have invoked the method with oauth parameters thus an oauth accesstoken is required.");
}
throw new ArgumentException("The provided token isn't an oauth token.");
}
}
The text was updated successfully, but these errors were encountered:
What kind of authentication are you using? An API key or an OAuth token? And are you setting testmode to true?
This error often occurs when you are trying to use an API key and setting testmode to true. You don't need to set the testmode parameter when using an API key, since the API key is either a test or prod API key.
The text was updated successfully, but these errors were encountered: