Check customer if it has account (New customer Account)

I developed a app extension that uses the attribute has_account to determine if a customer has an account, returning true or false. This worked well previously. However, with the updates to “New Customer Account,” this attribute seems to no longer work in the current version of stores.

Is there a new method to check if a customer has an account on a store in this updated version?

Hi Ozgar, have you found a solution to your question? We are faced with the same issue now.

If you can do it on the backend, you may use customerByIdentifier query, by given either email address or phone number.

If a corresponding account exist, it will return the Customer, otherwise null.