Skip to content

Commit 018ec65

Browse files
authored
Merge pull request jsonwebtoken#362 from jsonwebtoken/disclaimer-warning
Add disclaimer warning above the debugger
2 parents 7d185f1 + 7bd1c80 commit 018ec65

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

stylus/website/index.styl

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -660,23 +660,12 @@ body
660660
margin-left 10px
661661

662662
.warning
663-
background-color #FFFCD2
664-
font-size 11px
665-
color #4A4A4A
666-
text-align center
667-
padding 10px
668663
margin 0 -15px
664+
border-radius 0
669665
line-height 1.8
670-
color: darken(#FFFCD2, 80%)
671666
+breakpoint("tablet")
672-
font-size 14px
673667
margin 0 0 30px
674668
border-radius 3px
675-
padding 20px 0
676-
a
677-
color: darken(#FFFCD2, 80%)
678-
font-weight bold
679-
margin-left 5px
680669
svg
681670
height: 14px;
682671
width: 14px;
@@ -1163,3 +1152,22 @@ footer
11631152
.social-counter
11641153
+breakpoint("tablet")
11651154
text-align right
1155+
1156+
.warning
1157+
display block
1158+
width 100%
1159+
padding 15px
1160+
margin 0 0 40px 0
1161+
background #fff7c9
1162+
border-radius 3px
1163+
font-size 14px
1164+
color #786600
1165+
line-height 2
1166+
1167+
a
1168+
border-bottom 1px solid rgba(120,102,0,.4)
1169+
color #786600
1170+
text-decoration none
1171+
1172+
&:hover
1173+
opacity .7

views/website/libraries.pug

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ section#libraries-io.libraries-jwt
99
select#libraries-select
1010
option(value='*', selected='') All
1111
// Languages must be in alphabetic order
12-
-
13-
const sortedLangs = Array.from(languages);
12+
-
13+
const sortedLangs = Array.from(languages);
1414
sortedLangs.sort((a, b) => a.name.localeCompare(b.name));
1515
each lang in sortedLangs
1616
option(value=`.${lang.uniqueClass}`) #{lang.name}
1717

1818
.warning
1919
b Warning:
20-
| Critical vulnerabilities in JSON Web Token libraries with asymmetric keys.
20+
| Critical vulnerabilities in JSON Web Token libraries with asymmetric keys.
2121
a(href='https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries/')
2222
| Learn more
2323

24-
svg(height='48', viewbox='0 0 48 48', width='48', xmlns='http://www.w3.org/2000/svg')
25-
path(d='M-838-2232H562v3600H-838z', fill='none')
26-
path(d='M16 10v28l22-14z')
24+
svg(height='48', viewbox='0 0 48 48', width='48', xmlns='http://www.w3.org/2000/svg')
25+
path(d='M-838-2232H562v3600H-838z', fill='none')
26+
path(d='M16 10v28l22-14z')
2727

2828
.libraries-sv(data-accordion-group)
2929
each lang in languages

views/website/token-editor.pug

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ section#debugger-io.debugger-jwt
44
h1 Debugger
55

66
.jwt-playground
7+
.warning
8+
strong Warning:
9+
| JWTs are credentials, which can grant access to resources. Be careful where you paste them! We do not record tokens, all validation and debugging is done on the client side.
10+
711
.selections
812
.algorithm
913
span Algorithm

0 commit comments

Comments
 (0)