Hi guys, thanks for replying to me!
In my post-login flow, I have several specific actions to handle different things.
One of them sets custom claims in the access token and ID token — this action only does that, nothing else.
It currently works perfectly in production without the form action.
The problem appears when I place the form action at the beginning of the post-login flow.
Here’s the code for the form action:
exports.onExecutePostLogin = async (event, api) => {
api.prompt.render(event.secrets.formId);
};
exports.onContinuePostLogin = async (event, api) => {};
The form is very generic:
Here’s the body for the flow, Update User:
{
"user_metadata": {
"apodo": "{{fields.apodo}}",
"telofono": "{{fields.telefono.number}}"
}
}
and I set User ID field using this value: {{context.user.user_id}}
I don’t use any data from the form to create these custom claims.
The vault has permission to update users, and It is connected.