json_web_token_ex icon indicating copy to clipboard operation
json_web_token_ex copied to clipboard

New release

Open stevedomin opened this issue 8 years ago • 3 comments

Hello @garyf,

Any plans to push a new release out?

I'm sure you know already but the current version is broken with OTP 20 (and there is already a fix in master!).

Thanks!

stevedomin avatar Aug 04 '17 13:08 stevedomin

Hi @stevedomin,

With Elixir v1.5.1 (Erlang/OTP 20 [erts-9.0.4]) mix test is ✅ What issue(s) are you seeing?

garyf avatar Aug 27 '17 19:08 garyf

Hi, it looks like the Erlang :crypto library has removed the mpint function in OTP 20, which makes json_web_token throw an undef error inside module: JsonWebToken.Algorithm.Rsa and function: def modulus(key), do: :crypto.mpint(Enum.at key, 1).

The error occurred with the setup

  • OTP v20,
  • Elixir v1.5.1, and
  • json_web_token v0.2.8.

dragonwasrobot avatar Aug 28 '17 09:08 dragonwasrobot

@garyf exactly the issue @dragonwasrobot described. It has been fixed here: https://github.com/garyf/json_web_token_ex/commit/2a13b6007bb0e5993b63666cfd3011ddf504543a

stevedomin avatar Sep 05 '17 15:09 stevedomin