Skip to content

Commit

Permalink
Merge pull request #10 from aserto-dev/fix/authnerr
Browse files Browse the repository at this point in the history
fix ErrAuthenticationFailed
  • Loading branch information
carabasdaniel authored Dec 4, 2023
2 parents 06574c2 + 19b3c52 commit f2118ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/aerr/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
// Return if a user already exists
ErrUserAlreadyExists = newErr("E30006", codes.AlreadyExists, http.StatusConflict, "user already exists")
// Returned when authentication has failed or is not possible
ErrAuthenticationFailed = newErr("E30007", codes.FailedPrecondition, http.StatusUnauthorized, "authentication failed")
ErrAuthenticationFailed = newErr("E30007", codes.Unauthenticated, http.StatusUnauthorized, "authentication failed")
// Returned when a given parameter is incorrect (wrong format, value or type)
ErrInvalidArgument = newErr("E30008", codes.InvalidArgument, http.StatusBadRequest, "invalid argument")
// Return if a user is not found
Expand Down

0 comments on commit f2118ad

Please sign in to comment.