We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d52e1 commit 7075dbdCopy full SHA for 7075dbd
Sources/Base/OAuth2Base.swift
@@ -313,7 +313,7 @@ open class OAuth2Base: OAuth2Securable {
313
open func assureNoErrorInResponse(_ params: OAuth2JSON, fallback: String? = nil) throws {
314
315
// "error_description" is optional, we prefer it if it's present
316
- if let err_msg = params["error_description"] as? String {
+ if let err_msg = params["error_description"] as? String, err_msg.count > 0 {
317
throw OAuth2Error.responseError(err_msg)
318
}
319
0 commit comments