@nextcloud/password-confirmation
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.3 • Public • Published

    @nextcloud/password-confirmation

    npm Build Status

    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 using npm 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

    Keywords

    Install

    npm i @nextcloud/password-confirmation

    DownloadsWeekly Downloads

    3,177

    Version

    4.0.3

    License

    MIT

    Unpacked Size

    3.32 MB

    Total Files

    7

    Last publish

    Collaborators

    • pytal
    • gretadoci
    • mejo-
    • artonge
    • max-nextcloud
    • st3iny
    • marcoambrosinii
    • icewind1991
    • skjnldsv
    • christophwurst
    • juliushaertl
    • nickvergessen