From 276b43ddd057eaa111e967b2c98614b52de3f9a9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 12 Feb 2024 02:03:21 -0500 Subject: [PATCH] fix: strip out token --- api/middleware.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/middleware.go b/api/middleware.go index 48b7d45..76ba44b 100644 --- a/api/middleware.go +++ b/api/middleware.go @@ -258,6 +258,8 @@ func parseAuthTokenHeader(headers http.Header) string { authHeader = strings.TrimPrefix(authHeader, "Bearer ") authHeader = strings.TrimPrefix(authHeader, "bearer ") + authHeader = strings.TrimPrefix(authHeader, "Token ") + authHeader = strings.TrimPrefix(authHeader, "token ") return authHeader }