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.jsonwebtoken
jjwt0.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 {...