prevent panic when sse token is not found

This commit is contained in:
Jamie Curnow committed 2023-05-29 15:18:18 +10:00
1 parent 4dd6fd06f4
commit 3301800f42
2 files changed
+12 -2

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ func DecodeAuth() func(http.Handler) http.Handler {
}
tokenAuth := jwtauth.New("RS256", privateKey, publicKey)
return jwtauth.Verify(tokenAuth, jwtauth.TokenFromHeader)
return jwtauth.Verify(tokenAuth, jwtauth.TokenFromHeader, jwtauth.TokenFromQuery)
}
// Enforce is a authentication middleware to enforce access from the