Not Pictured: Mangoes

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

    2.0.0 • Public • Published

    @nextcloud/auth

    Nextcloud helpers related to authentication and the current user

    npm Documentation

    Install

    yarn add @nextcloud/auth
    npm install @nextcloud/auth --save

    Usage

    import {
      getRequestToken,
      getCurrentUser,
      onRequestTokenUpdate,
    } from '@nextcloud/auth'
    
    const user = getCurrentUser()
    
    if (user.isAdmin) {
      // do something
    }

    For more imformation check nextcloud.github.io/nextcloud-auth

    Keywords

    Install

    npm i @nextcloud/auth

    DownloadsWeekly Downloads

    8,698

    Version

    2.0.0

    License

    GPL-3.0-or-later

    Unpacked Size

    46.9 kB

    Total Files

    10

    Last publish

    Collaborators

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