@nextcloud/password-confirmation
Promise-based password confirmation for Nextcloud.
This library exports a function that displays a password confirmation dialog when called and returns a promise. This makes it easier to integrate with other asynchronous operations.
Installation
npm add @nextcloud/password-confirmation
Usage
import { confirmPassword } from '@nextcloud/password-confirmation'
import '@nextcloud/password-confirmation/dist/style.css' // Required for dialog styles
const foo = async () => {
try {
await confirmPassword()
// Your logic
} catch (error) {
// Your error handling logic
}
}
Releasing
1) Create release branch 2) Adjust version usingnpm version vx.y.z --no-git-tag-version
3) Update CHANGELOG.md
4) Commit and open PR
5) After merge, pull latest master
6) git tag vx.y.z
7) git push origin vx.y.z
8) npm ci && npm run build && npm publish