-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Description
Hello,
I am facing "Illegal base64url string! Parameter name: input" error while decoding the token :
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Illegal base64url string!
Parameter name: input
Source=jose-jwt
StackTrace:
at Jose.Base64Url.Decode(String input)
at Jose.JWT.DecodeBytes(String token, Object key, Nullable1 expectedJwsAlg, Nullable
1 expectedJweAlg, Nullable`1 expectedJweEnc, JwtSettings settings, Byte[] payload)
at Jose.JWT.Decode(String token, Object key, JwsAlgorithm alg, JwtSettings settings, String payload)
App Code:
byte[] secretKey = Encoding.ASCII.GetBytes(Key);
string Response = IsEncrypt ? JWT.Encode(Message, secretKey, JwsAlgorithm.HS256) : JWT.Decode(Message, secretKey, JwsAlgorithm.HS256);
Metadata
Metadata
Assignees
Labels
No labels