Skip to content
auth / 2.0.0

auth 2.0.0

Install from the command line:
Learn more about npm packages
$ npm install @nextcloud/auth@2.0.0
Install via package.json:
"@nextcloud/auth": "2.0.0"

About this version

@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

Details

  • auth
  • @nextcloud nextcloud
  • over 2 years ago
  • GPL-3.0-or-later
  • 9 dependencies

Assets

  • auth-2.0.0-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all