settings with rout and use auth and notauth routing with bearer jwt token

This commit is contained in:
valitovgaziz
2024-08-14 12:31:51 +05:00
parent 413e35101c
commit d7ebd35aae
3 changed files with 18 additions and 12 deletions
-1
View File
@@ -39,7 +39,6 @@ func AuthMiddleware(next http.Handler) http.Handler {
w.WriteHeader(http.StatusUnauthorized)
return
}
ctx := context.WithValue(r.Context(), "email", claims.Email)
next.ServeHTTP(w, r.WithContext(ctx))
})