Auth0 Home Blog Docs

How can I get values in id_token in Fetch User Profile Script



I’m looking for ways to get values in id_token in fetch user profile script of custom social connector. Some identity providers which support OIDC hybrid flow return id_token with access token and I want to fetch some of user attributes from id_token.
I tried to access id_token in the script like “ctx.idToken”, but it did not work.

Does anyone have solution for this?