def METHOD_NAME(
    self, new_data: Mapping[str, Any], current_data: Mapping[str, Any]
) -> Mapping[str, Any]:
    """
    When re-authenticating with a provider, the identity data may need to
    be mutated based on the previous state. An example of this is Google,
    which will not return a `refresh_token` unless the user explicitly
    goes through an approval process.
    Return the new state which should be used for an identity.
    """
    return new_data