How To Set ID Token Claims Using Actions

Problem Statement:

How to set ID token claims using actions

Solution:

You can use api.idToken.setCustomClaim(name, value) when using the post-login hook.

Please refer to this doc: