lib/rack/prx_auth.rb in rack-prx_auth-0.2.0 vs lib/rack/prx_auth.rb in rack-prx_auth-0.2.1

- old
+ new

@@ -41,9 +41,11 @@ def valid?(claims, token) !expired?(claims) && @certificate.valid?(token) end def decode_token(token) + return {} if token.nil? + begin JSON::JWT.decode(token, :skip_verification) rescue JSON::JWT::InvalidFormat {} end