<Payload in Jwt token is going as simple text inst...
# stackoverflow
u
Payload in Jwt token is going as simple text instated of application/json I am generating a signed JWT token. I am able to create a token but the payload is not setting as a application/json format inside setClaims() I am using this library implementation 'io.jsonwebtokenjjwt0.7.0' This is my code to generate a token fun getJWT(userInput: JsonObject) : String { val s = "secretKey" val encodedBody : String = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { Base64.getEncoder().encodeToString(s.toByteArray()) }else {...