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

2.5.2 • Public • Published

@nextcloud/auth

REUSE status npm Documentation

Nextcloud helpers related to authentication and the current user

Install

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

Usage

For detailed information check the package documentation.

One example usage to get the current user:

import { getCurrentUser } from '@nextcloud/auth'

const user = getCurrentUser()

if (user.isAdmin) {
  // do something
}

Readme

Keywords

Package Sidebar

Install

npm i @nextcloud/auth

Weekly Downloads

35,986

Version

2.5.2

License

GPL-3.0-or-later

Unpacked Size

63.5 kB

Total Files

13

Last publish

Collaborators

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