Skip to content

refactor auth interface to return error when verify failure #22119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Dec 28, 2022
Prev Previous commit
Next Next commit
improvement
  • Loading branch information
lunny committed Dec 13, 2022
commit 97411d4e2540c393901de6eac74dc61a366f8f71
1 change: 1 addition & 0 deletions routers/api/packages/nuget/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func (a *Auth) Verify(req *http.Request, w http.ResponseWriter, store auth.DataS
if err != nil {
if !(auth_model.IsErrAccessTokenNotExist(err) || auth_model.IsErrAccessTokenEmpty(err)) {
log.Error("GetAccessTokenBySHA: %v", err)
return nil, err
}
return nil, nil
}
Expand Down