lib/matic-jwt/authenticator.rb in matic-jwt-1.0.0 vs lib/matic-jwt/authenticator.rb in matic-jwt-1.0.1
- old
+ new
@@ -14,10 +14,10 @@
end
private
def extract_token(header)
- token = header.slice(@scheme.length + 1..-1)
+ token = header&.slice(@scheme.length + 1..-1)
validate_header_presence!(token)
token
end
def payload