Unable to get Google Refresh token

When I was using Auth0 rules(which are being depreciated by Nov 2024) I was able to get google(idp) refresh token using following code, in post login flow:
function addPersistenceAttribute(user, context, callback) {
console.log("details ",user.identities[0].refresh_token);
But when I migrated to Actions the same refresh token is not available using following:
exports.onExecutePostLogin = async (event, api) => {
console.log("details ",event.user.identities[0].refresh_token);
What am I missing? Is there some other object which has the identities refresh token??
Any help would be appreciated before rules are depreciated :slight_smile:

1 Like

Looks like its actions limitation - Actions Limitations

Actions does not currently support:

  • Retrieving External IdP tokens from the Identities array

Any update on when this will be available, hopefully before rules are depreciated or else it would be broken functionality for lot of apps :frowning:

1 Like