Nextcloud as auth backend

I have a web application with authentication from mysql db. How can I authenticate this application from mysql db nextcloud directly? How the passwords are stored in db nextcloud (hash algorithm)? Or what other way is there to solve this problem?

Understood himself. The hash algorithm is bcrypt, in the php function of password_hash and password_verify. I turned on a full authentication from the nextcloud database (support for groups, checking the blocking of the user) my web applications and the mail server (postfix + dovecot).