hono 4.7.9 → 4.7.10
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.
- package/dist/cjs/hono-base.js +2 -0
- package/dist/cjs/utils/jwt/jwt.js +1 -1
- package/dist/hono-base.js +2 -0
- package/dist/utils/jwt/jwt.js +1 -1
- package/package.json +1 -1
package/dist/cjs/hono-base.js
CHANGED
|
@@ -119,7 +119,7 @@ const verifyFromJwks = async (token, options, init) => {
|
|
|
119
119
|
if (!matchingKey) {
|
|
120
120
|
throw new import_types.JwtTokenInvalid(token);
|
|
121
121
|
}
|
|
122
|
-
return await verify(token, matchingKey, matchingKey.alg);
|
|
122
|
+
return await verify(token, matchingKey, matchingKey.alg || header.alg);
|
|
123
123
|
};
|
|
124
124
|
const decode = (token) => {
|
|
125
125
|
try {
|
package/dist/hono-base.js
CHANGED
package/dist/utils/jwt/jwt.js
CHANGED
|
@@ -100,7 +100,7 @@ var verifyFromJwks = async (token, options, init) => {
|
|
|
100
100
|
if (!matchingKey) {
|
|
101
101
|
throw new JwtTokenInvalid(token);
|
|
102
102
|
}
|
|
103
|
-
return await verify(token, matchingKey, matchingKey.alg);
|
|
103
|
+
return await verify(token, matchingKey, matchingKey.alg || header.alg);
|
|
104
104
|
};
|
|
105
105
|
var decode = (token) => {
|
|
106
106
|
try {
|