Skip to content

Commit

Permalink
add placeholder value for JWT encoded input
Browse files Browse the repository at this point in the history
  • Loading branch information
xta committed Jan 9, 2024
1 parent 6dc3c82 commit f2b8c1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<body>
<h1>JWT datetime (all local)</h1>
<h2>JWT encoded value</h2>
<textarea id="input" oninput="calc();"></textarea><br />
<textarea id="input"
oninput="calc();">eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c</textarea><br />
<h2>jwt header</h2>
<textarea id="header"></textarea><br />
<h2>jwt payload</h2>
Expand Down Expand Up @@ -58,6 +59,7 @@ <h3>encoder</h3>
}
return updated
}
calc();
enc();
function calc() {
var input = document.getElementById('input');
Expand Down

0 comments on commit f2b8c1e

Please sign in to comment.