🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@nextcloud/auth

Package Overview
Dependencies
Maintainers
13
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcloud/auth

Nextcloud helpers related to authentication and the current user

Source
npmnpm
Version
2.5.1
Version published
Maintainers
13
Created
Source

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

Keywords

nextcloud

FAQs

Package last updated on 13 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts