Skip to content

nextcloud-libraries/nextcloud-auth

Folders and files

NameName
Last commit message
Last commit date
Aug 13, 2024
Jul 15, 2024
Aug 13, 2024
Aug 13, 2024
Apr 21, 2024
Jul 15, 2024
Jul 15, 2024
Aug 13, 2024
Jun 19, 2019
Aug 13, 2024
Jul 15, 2024
Mar 22, 2025
Mar 22, 2025
Apr 22, 2024
Jul 15, 2024
Jul 15, 2024

Repository files navigation

@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
}