Skip to content

Instantly share code, notes, and snippets.

@calvincodes
Created August 14, 2019 17:31
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/2e9e5f0d6d9f0e599e7b73e4ce128984 to your computer and use it in GitHub Desktop.
Save calvincodes/2e9e5f0d6d9f0e599e7b73e4ce128984 to your computer and use it in GitHub Desktop.
Describes Step 6 of JWT verification
// For reference
// received_jwt = abcde.fghij.klmno (header.payload.signature)
// Step 6.1
val received_signature = extract_sig(received_jwt) // klmno
// Step 6.2
val can_trust = (received_signature == expected_signature)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment