nextcloud-auth

Nextcloud helpers related to authentication and the current user https://npmjs.org/@nextcloud/auth

GPL-3.0 License

Stars
8
Committers
11

@nextcloud/auth

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
}
Badges
Extracted from project README
REUSE status npm Documentation
Related Projects