Skip to content

Commit

Permalink
Merge pull request #280 from auth0/update-pkce-err-msg
Browse files Browse the repository at this point in the history
Update app configuration error message for PKCE
  • Loading branch information
damieng authored May 29, 2019
2 parents 5167255 + 371a293 commit b505eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Auth0/OAuth2Grant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct PKCE: OAuth2Grant {
.start { result in
// Special case for PKCE when the correct method for token endpoint authentication is not set (it should be None)
if case .failure(let cause as AuthenticationError) = result, cause.description == "Unauthorized" {
let error = WebAuthError.pkceNotAllowed("Please go to 'https://manage.auth0.com/#/applications/\(clientId)/settings' and make sure 'Client Type' is 'Native' to enable PKCE.")
let error = WebAuthError.pkceNotAllowed("Unable to complete authentication with PKCE. PKCE support can be enabled by setting Application Type to 'Native' and Token Endpoint Authentication Method to 'None' for this app at 'https://manage.auth0.com/#/applications/\(clientId)/settings'.")
callback(Result.failure(error: error))
} else {
callback(result)
Expand Down

0 comments on commit b505eed

Please sign in to comment.