Skip to content

Instantly share code, notes, and snippets.

@calvincodes
Created August 14, 2019 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvincodes/d588ae812a57f51e57b4adddf3b6eb06 to your computer and use it in GitHub Desktop.
Save calvincodes/d588ae812a57f51e57b4adddf3b6eb06 to your computer and use it in GitHub Desktop.
Describes Step 1 to 3 of JWT verification
// 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