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

2.3.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

Readme

Keywords

Package Sidebar

Install

npm i @nextcloud/auth

Weekly Downloads

9,117

Version

2.3.0

License

GPL-3.0-or-later

Unpacked Size

47 kB

Total Files

11

Last publish

Collaborators

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