Hello!
I have a Rule that converts user profiles metadata when fetching user data.
At least that is what I believe the rule does.
I have tried - but do not understand how to convert this to an Action.
My main questions are:
What is the equivalent to context.idToken['${namespace}/usertype]
Is a callback still needed? callback(null, user, context);
I understand that you have some questions about converting your existing Rule to an Action.
First, allow me to address your questions:
To achieve the same functionality as context.idToken['${namespace}/usertype'], you can use the following command in your Action script: api.idToken.setCustomClaim(${namespace}/usertype, VALUE).