token should never be null here because we have an authenticated user however add the same check as elsewhere Signed-off-by: Nicola Murino <[email protected]>
@@ -1001,7 +1001,7 @@ func (s *httpdServer) checkCookieExpiration(w http.ResponseWriter, r *http.Reque
return
}
token, claims, err := jwtauth.FromContext(r.Context())
- if err != nil {
+ if err != nil || token == nil {
tokenClaims := jwtTokenClaims{}