Small error correction

This commit is contained in:
Jason Streifling 2024-08-17 20:18:53 +02:00
parent 472f00a107
commit 0c87d91df1

View File

@ -13,7 +13,9 @@ import (
func tokenIsVerified(w http.ResponseWriter, r *http.Request) bool { func tokenIsVerified(w http.ResponseWriter, r *http.Request) bool {
idToken := r.Header.Get("Authorization") idToken := r.Header.Get("Authorization")
if idToken == "" { if idToken == "" {
log.Println("Authorization header missing")
http.Error(w, "Authorization header missing", http.StatusUnauthorized) http.Error(w, "Authorization header missing", http.StatusUnauthorized)
return false
} }
client, err := b.NewClient() client, err := b.NewClient()