Commit c6d7130f authored by Stan Hu's avatar Stan Hu

Set typ field in JSONWebToken::RSAToken

ruby-jwt v2.0 removed the `typ` header in
https://github.com/jwt/ruby-jwt/commit/cc41d53e00f8cbf015271b53f5ad761bd6ac2312.

To ensure tokens don't get marked invalid during an upgrade,
add it back to ensure backwards compatibility.
parent 34f51dee
......@@ -11,7 +11,8 @@ module JSONWebToken
def encoded
headers = {
kid: kid
kid: kid,
typ: 'JWT'
}
JWT.encode(payload, key, 'RS256', headers)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment