There was an error while loading. Please reload this page.
2 parents 685b48d + 38ae8ce commit 7509c74Copy full SHA for 7509c74
jwt/decode-incoming-jwt.rb
@@ -0,0 +1,8 @@
1
+require 'jwt'
2
+
3
+SIGNATURE = ARGV[0] || ENV['SIGNATURE']
4
5
+# The JWT Ruby spec requires nil and false values provided, respectively, for the two optional parameters
6
+# See: https://github.com/jwt/ruby-jwt#algorithms-and-usage
7
+decoded = JWT.decode(SIGNATURE, nil, false)
8
+puts decoded
0 commit comments