Skip to content

Instantly share code, notes, and snippets.

@lechidung lechidung/js
Created Dec 7, 2018

Embed
What would you like to do?
jwt - encodedHeader
var header = {
"alg": "HS256",
"typ": "JWT"
};
var stringifiedHeader = CryptoJS.enc.Utf8.parse(JSON.stringify(header));
var encodedHeader = base64url(stringifiedHeader);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.