Open munjalpatel opened 6 years ago
Also having this issue, got any solution?
This is how I'm doing it
defmodule .. do
@public_key JsonWebToken.Algorithm.RsaUtil.public_key(Application.get_env(:my_app, :pub_pem))
def decode(jwt) do
options = %{alg: "RS256", iss: _redacted, key: @public_key}
JsonWebToken.verify(jwt, options)
|> mockable(JwtClaims).verify(options)
end
end
Hello,
I am trying to verify a JWT token using RS256 and an RSA public key. However, I keep getting "ArgumentError"
What is the correct way to pass in RSA key?
This is what I am doing:
This is the error I get: