parseTokenToJsonObject

fun parseTokenToJsonObject(token: TokenResponse, parseTokenParams: ParseTokenParams, additionKey: String): JSONObject

The function is used to parse token to JSONObject

Return

JSONObject the value of the given key in payload

Parameters

token

parameter for token response from IDP

parseTokenParams

parameter for decrypting, verify signature, verify payload

additionKey

parameter for the key of claims to get JsonObject