Append claim in actions v2

Hi, I am trying to use actions v2 to append claims with the preuserinfo function.
I am using FastAPI for my "actions micro service". At the moment I just return this json:
 {'append_claims': [{'key': 'test', 'value': 'test'}] }

But this seems to be ignored when I call the userinfo endpoint.
What I am doing wrong?
Was this page helpful?