Skip to content

Commit

Permalink
Look for auth token in X-Beeper-Access-Token
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Dec 19, 2023
1 parent abd50b9 commit 420c0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (a *api) requireAuthHandler(
next http.HandlerFunc,
) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
authToken := r.Header.Get("Authorization")
authToken := r.Header.Get("X-Beeper-Access-Token")

if authToken == "" {
a.log.Warn().Msg("Request missing auth header")
Expand Down

0 comments on commit 420c0d8

Please sign in to comment.