Promise-based password confirmation wrapper for Nextcloud.
This tiny library wraps OC.PasswordConfirmation.requiresPasswordConfirmation
and OC.PasswordConfirmation.requirePasswordConfirmation
and exports it as a function that returns a promise. This makes it easier to integrate with other asynchronous operations.
npm i --save @nextcloud/password-confirmation
import confirmPassword from '@nextcloud/password-confirmation';
confirmPassword().then(() => {
// your logic
});