Skip to content

Repository files navigation

@nextcloud/auth

REUSE statusnpmDocumentation

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'constuser=getCurrentUser()if(user.isAdmin){// do something}

Releases

Packages

Used by

Contributors

Languages