Skip to content

Commit

Permalink
update env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrest1 committed Feb 5, 2024
1 parent e0297ec commit df57721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions middlewares/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func Auth(next http.HandlerFunc) http.HandlerFunc {
log.Fatal("JWT_SECRET_KEY not set in env")
}

if secretKey == "" {
log.Printf("JWT_SECRET_KEY is empty")
}


return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
tokenString := r.Header.Get("Authorization")
Expand Down

0 comments on commit df57721

Please sign in to comment.