Created
August 14, 2019 17:18
-
-
Save calvincodes/d588ae812a57f51e57b4adddf3b6eb06 to your computer and use it in GitHub Desktop.
Describes Step 1 to 3 of JWT verification
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
// For reference | |
// received_jwt = abcde.fghij.klmno (header.payload.signature) | |
// Step 1 | |
val received_header = extract_header(received_jwt) // abcde | |
// Step 2 | |
val received_payload = extract_payload(received_jwt) // fghij | |
// Step 3 | |
val rcvd_data = received_header + "." + received_payload // abcde.fghij |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment