Created
August 14, 2019 17:31
-
-
Save calvincodes/2e9e5f0d6d9f0e599e7b73e4ce128984 to your computer and use it in GitHub Desktop.
Describes Step 6 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 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