Hello @Khotovytskyi Gennadii and thanks for reaching out. You can use Azure Function as callbacks for events initiated in Azure AD B2C such as sign-in, sign-up, and others, implementing API connectors, since they can POST JSON data through an HTTP request.
Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.