@opengis/fastify-table 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ export default async function checkJWT(req) {
18
18
  const code = req.body ? req.body.code : req.query.code;
19
19
  const jwtToken = req.url === "/oauth/token" && code
20
20
  ? code
21
- : headers.authorization?.split(" ")?.[1];
21
+ : headers["x-auth-token"] || headers.authorization?.split(" ")?.[1];
22
22
  // restict access if header is not provided at all
23
23
  if (!jwtToken) {
24
24
  logger.file("policy/jwt", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [