How to hash user_id from SAML IdP?

Hi,
We are trying to use Auth0 as SP and Okta as IdP. The problem is, that we store the identities information in Firebase, and while we do not want to persist sensitive information like email address, the user_id returned from Okta contains user mail address.
Is that possible to e.g. hash the user_id string by Auth0 actions?

Hi @jack456jokky, Thanks for prompt response.

So it seems that we have to create a new property hashed_user_id to pass secured strings to Firebase.
Isn’t it possible to overwrite user_id itself by actions at the first place?