Custom claims missing after successful form action in post-login flow

Hello there!

I’m working on a POC to showcase the forms feature to my team and to implement it in our project. However, I’m experiencing an issue with the post-login flow after the action that renders my form.

We have an action that sets custom claims in the access token and adds custom metadata to the ID token. But when we use the action that renders a form, these custom claims and metadata are missing at the end of the post-login flow.

We’re using a simple form without complex logic, very similar to the example shown in your documentation.

Do you have any idea what might be causing this issue?
If I remove the form action, the post-login flow works correctly.

Thanks in advance!