Skip to content

Instantly share code, notes, and snippets.

@rmpugh
Created December 21, 2016 12:27
Show Gist options
  • Save rmpugh/12cab0e5098d263fba84a0f201a0e712 to your computer and use it in GitHub Desktop.
Save rmpugh/12cab0e5098d263fba84a0f201a0e712 to your computer and use it in GitHub Desktop.
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