jwt icon indicating copy to clipboard operation
jwt copied to clipboard

Erlang JWT library

Results 3 jwt issues
Sort by recently updated
recently updated
newest added

It appears that invalid pem_decodes aren't handled properly. The case for [] is not handled. https://github.com/artemeff/jwt/blob/master/src/jwt.erl#L333-L340 errorContext: child_terminated reason: {{case_clause,[]}, [{jwt,pem_to_key,1, [{file,"/build/_build/default/lib/jwt/src/jwt.erl"}, {line,323}]}, {jwt,jwt_check_sig,4, [{file,"/build/_build/default/lib/jwt/src/jwt.erl"}, {line,235}]}, {jwt,check_signature,1, [{file,"/build/_build/default/lib/jwt/src/jwt.erl"}, {line,174}]}, {jwt,reduce_while,3,...

I believe at the following line: https://github.com/artemeff/jwt/blob/master/src/jwt.erl#L146 ...an error is occurring when attempting to decode un-padded base64 values. As per [the spec](https://tools.ietf.org/html/rfc7515#section-2), ``` Base64url Encoding Base64 encoding using the URL-...