Nextcloud helpers related to authentication and the current user
npm install @nextcloud/auth


Nextcloud helpers related to authentication and the current user
``sh`
npm install @nextcloud/auth --save
`sh`
yarn add @nextcloud/auth
One example usage to get the current user:
`ts
import { getCurrentUser } from '@nextcloud/auth'
const user = getCurrentUser()
if (user.isAdmin) {
// do something
}
``