Last active
August 29, 2015 14:14
-
-
Save linki/e8c19402bc9468dc20f1 to your computer and use it in GitHub Desktop.
extract at
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
require 'openssl' | |
require 'json/jwt' | |
require 'pp' | |
token = ARGV[0] | |
private_key = OpenSSL::PKey::RSA.new(ENV.fetch('CONCIERGE_PRIVATE_KEY').gsub('.', "\n")) | |
token = JSON::JWT.decode(token, private_key) | |
pp token.to_hash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment