nextcloud-password-confirmationdeprecated

Promise-based password confirmation wrapper for Nextcloud

Usage no npm install needed!

<script type="module">
  import nextcloudPasswordConfirmation from 'https://cdn.skypack.dev/nextcloud-password-confirmation';
</script>

README

nextcloud-password-confirmation

npm Build Status

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.

Installation

npm i --save nextcloud-password-confirmation

Usage

import confirmPassword from 'nextcloud-password-confirmation';

confirmPassword().then(() => {
    // your logic
});