I deployed it and add it to the flow. In logs everything is fine. I successfully made a post registration action but login action actually doesn’t modify access token.
So to be confident that I test it correctly I’ ve added a similar rule:
I understand that you’re having issues getting the Post-Login Action script to append custom claims to your access token.
After looking at your code snippet, it appears that you did not specify a namespace to append your custom claim. Read Create Custom Claims for more details.
Given that, I recommend that you do something like the following in your Post Login Action script: