Solved some todo(s)

This commit is contained in:
Marco Realacci 2022-11-22 22:47:17 +01:00
parent 05acfb045f
commit a3cf4f17f8
5 changed files with 27 additions and 30 deletions

View file

@ -14,7 +14,7 @@ func BuildAuth(header string) (reqcontext.Authorization, error) {
auth, err := BuildBearer(header)
if err != nil {
if err.Error() == "invalid authorization header" {
return nil, errors.New("method not supported") // todo: better error description
return nil, errors.New("authentication method not supported")
}
return nil, err
}