Skip to content
Permalink
Browse files

Remove typ optional parameter

  • Loading branch information...
ogonki-vetochki committed Nov 9, 2016
1 parent 8e6c3f3 commit cc41d53e00f8cbf015271b53f5ad761bd6ac2312
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jwt.rb
@@ -80,7 +80,7 @@ def base64url_encode(str)
end

def encoded_header(algorithm = 'HS256', header_fields = {})
header = { 'typ' => 'JWT', 'alg' => algorithm }.merge(header_fields)
header = { 'alg' => algorithm }.merge(header_fields)
base64url_encode(encode_json(header))
end

0 comments on commit cc41d53

Please sign in to comment.
You can’t perform that action at this time.