Skip to content

Commit 89c4705

Browse files
committed
feat: add "typ" (Type) Header Parameter check
1 parent 570c74b commit 89c4705

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

views/website/libraries/2-Node.js.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"nbf": true,
5050
"iat": true,
5151
"jti": true,
52+
"typ": true,
5253
"hs256": true,
5354
"hs384": true,
5455
"hs512": true,

views/website/libraries/4-JavaScript.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"nbf": true,
1717
"iat": true,
1818
"jti": true,
19+
"typ": true,
1920
"hs256": true,
2021
"hs384": true,
2122
"hs512": true,

views/website/libraries/support/get-libs-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function getLibs() {
3737

3838
let orderedKeys = ['sign', 'verify', 'iss',
3939
'sub', 'aud', 'exp',
40-
'nbf', 'iat', 'jti'];
40+
'nbf', 'iat', 'jti', 'typ'];
4141

4242
for(let i = 0; i < orderedKeys.length; ++i) {
4343
r.support[orderedKeys[i]] =

views/website/libraries/template.pug

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ article(data-accordion, class=`accordion ${lang.uniqueClass}`)
4444
i(class=lib.support.jti ? 'icon-budicon-500' : 'icon-budicon-501')
4545
code jti
4646
| check
47+
p
48+
i(class=lib.support.typ ? 'icon-budicon-500' : (lib.support.typ !== undefined ? 'icon-budicon-501' : 'icon-unknown'))
49+
code typ
50+
| check
4751
.column
4852
p
4953
i(class=lib.support.hs256 ? 'icon-budicon-500' : 'icon-budicon-501')

0 commit comments

Comments
 (0)