-
-
Save lechidung/a9c5a1ce699eb5dd6ba74978d98d2334 to your computer and use it in GitHub Desktop.
jwt - encodedHeader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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