From 0c87d91df14c1deccf715bf560040a129bc6923f Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sat, 17 Aug 2024 20:18:53 +0200 Subject: [PATCH] Small error correction --- cmd/frontend/firebase.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/frontend/firebase.go b/cmd/frontend/firebase.go index ca554b8..9790212 100644 --- a/cmd/frontend/firebase.go +++ b/cmd/frontend/firebase.go @@ -13,7 +13,9 @@ import ( func tokenIsVerified(w http.ResponseWriter, r *http.Request) bool { idToken := r.Header.Get("Authorization") if idToken == "" { + log.Println("Authorization header missing") http.Error(w, "Authorization header missing", http.StatusUnauthorized) + return false } client, err := b.NewClient()