Thanks Scott. Even after changing it to RS256 I get the same error.
On Monday, June 20, 2016 at 7:14:10 PM UTC-7, macmilla...@gmail.com wrote:
>
> I get this error 'Error serializing the key. json: error calling
> MarshalJSON for type jws.Claims: unexpected end of JSON input'
> I believe that I
You're loading in an RSA key but signing with HS512, try changing:
signMethod := jws.GetSigningMethod("HS512")
to
signMethod := jws.GetSigningMethod("RS256")
On Monday, June 20, 2016 at 10:14:10 PM UTC-4, macmilla...@gmail.com wrote:
>
> I get this error 'Error serializing the key. json: