Skip to content

Commit

Permalink
Revert "Refined logic after discussing"
Browse files Browse the repository at this point in the history
This reverts commit f878349.
  • Loading branch information
cocojoe committed Sep 7, 2017
1 parent f878349 commit a8993d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Auth0/AuthenticationError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public class AuthenticationError: Auth0Error, CustomStringConvertible {

/// When username and/or password used for authentication are invalid
public var isInvalidCredentials: Bool {
return self.code == "invalid_user_password" || self.code == "invalid_grant"
return self.code == "invalid_user_password" || (self.code == "invalid_grant" && self.description == "Wrong email or password.")
}

/// When authenticating with web-based authentication and the resource server denied access per OAuth2 spec
Expand Down

0 comments on commit a8993d8

Please sign in to comment.