Skip to content

Instantly share code, notes, and snippets.

@calvincodes
Created August 14, 2019 17:38
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/9e9f27887df56d2302657d4aeb70f91f to your computer and use it in GitHub Desktop.
Save calvincodes/9e9f27887df56d2302657d4aeb70f91f to your computer and use it in GitHub Desktop.
Describes Step 1 to 3 of JWT creation
val header = base64UrlEncode(header_json) // Step 1
val payload = base64UrlEncode(payload_json) // Step 2
val data = header + "." + payload // Step 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment