fix: return in wrong spot
This commit is contained in:
parent
cfce7348d4
commit
7df6bb245b
|
@ -172,9 +172,9 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl
|
|||
|
||||
if unauthorized {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
userId, err := strconv.ParseUint(claim.Subject, 10, 64)
|
||||
|
||||
|
|
Loading…
Reference in New Issue