JSON Web Token (JWT)
Encode a JWT
<% if (matches) { %>
SUCCESS: Decoded JWT is valid and matches it's signature.
<% } %> <% if (!matches && !example) { %>
ERROR: Decoded JWT does NOT match it's signature!
<% } %>
JWT Header <% if (example) { %>-
Replace example with your header
<% } %>
<%= header %>
JWT Claimset <% if (example) { %>-
Replace example with your claim set
<% } %>
<%= claimSet %>
Private Key <% if (example) { %>-
Replace example with your Private Key
<% } %>
<%= privKey %>