Remove Claims from ID Token with Post Login Action
Sep 10, 2025
Overview
Can the 'nickname' and 'picture' claim from the ID token be removed after a user authenticates successfully. This was possible with Rules previously. What is the recommended solution for the use case when leveraging Actions?
Applies To
- Remove Claims
- ID Token
- Post Login Action
Solution
api.idToken.setCustomClaim('picture', undefined);