Created
December 21, 2016 12:27
-
-
Save rmpugh/12cab0e5098d263fba84a0f201a0e712 to your computer and use it in GitHub Desktop.
This file contains 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
snippet = { | |
"account" => { | |
"id" => "a123456", | |
"is_paying" => "true", | |
"monthly_value" => "99.99" | |
}, | |
"vendor" => { | |
"id" => "vendor-12345" | |
}, | |
"user" => { | |
"full_name" => "Dan Test", | |
"email" => "dan@example.com", | |
"id" => "u123459" | |
}, | |
"return_url" => "http://example.com" | |
} | |
jwt_token = JWT.encode(snippet, "secret-12345", "HS256") | |
receptiveAppSettings = { | |
"jwt" => jwt_token | |
}.to_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment