Closed ghost closed 4 years ago
Hi @kvsteger-driver !
This is expected (and the message is not very clear...). RS256 needs an RSA key. "secret" is a symmetric key and not an asymmetric key. It is only possible to use with HS*** algorithms currently.
Take a look at the guides about this:
{:joken, "~> 2.0"}
In a.iex.exs
file I'm callingsigner = Joken.Signer.create("RS256", "secret")
and getting:RS256
appears in the list of possible values.