I added? a custom claim to access token with script mapper, but I need put it in refresh token also. Is there any way?
my code:
var deposits = keycloakSession.getContext().getRequestHeaders().getRequestHeader("deposits");
if (deposits.length){
token.getOtherClaims().put("deposits", deposits);
}
question from:https://stackoverflow.com/questions/65862805/can-i-add-custom-claims-to-refresh-token