Hi @vova
Welcome to the Auth0 Community!
Thank you for posting your question, I’ve checked your action code in my tenant, and it correctly added claims to the ID Token and access token. Could you check if your application is passing the audience in the request? I’m guessing that you could be getting an opaque token, not a valid JWT → Why Access Token Is Not a JWT (Opaque Token). You can also use Auth0 CLI with auth0 test token
command to check the access token.
Thanks
Dawid