@nextcloud/auth
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -0,4 +1,10 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
export type { CsrfTokenObserver } from './requesttoken'; | ||
export type { NextcloudUser } from './user'; | ||
export { getCSPNonce } from './csp-nonce'; | ||
export { getGuestNickname, setGuestNickname } from './guest'; | ||
export { getRequestToken, onRequestTokenUpdate } from './requesttoken'; | ||
export { getCurrentUser } from './user'; |
@@ -0,1 +1,5 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: GPL-3.0-or-later | ||
*/ | ||
declare global { | ||
@@ -2,0 +6,0 @@ interface Window { |
{ | ||
"name": "@nextcloud/auth", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Nextcloud helpers related to authentication and the current user", | ||
@@ -37,15 +37,16 @@ "type": "module", | ||
"dependencies": { | ||
"@nextcloud/event-bus": "^3.2.0" | ||
"@nextcloud/browser-storage": "^0.4.0", | ||
"@nextcloud/event-bus": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@nextcloud/eslint-config": "^8.3.0", | ||
"@nextcloud/typings": "^1.8.0", | ||
"@nextcloud/vite-config": "^1.2.2", | ||
"@vitest/coverage-v8": "^1.5.0", | ||
"@nextcloud/eslint-config": "^8.4.1", | ||
"@nextcloud/typings": "^1.9.1", | ||
"@nextcloud/vite-config": "^2.2.2", | ||
"@vitest/coverage-v8": "^2.0.5", | ||
"eslint": "^8.57.0", | ||
"happy-dom": "^14.7.1", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.10", | ||
"vitest": "^1.5.0" | ||
"happy-dom": "^14.12.3", | ||
"typedoc": "^0.26.5", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.0", | ||
"vitest": "^2.0.2" | ||
}, | ||
@@ -52,0 +53,0 @@ "engines": { |
@@ -0,26 +1,29 @@ | ||
<!-- | ||
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors | ||
- SPDX-License-Identifier: GPL-3.0-or-later | ||
--> | ||
# @nextcloud/auth | ||
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-auth)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-auth) | ||
[![npm](https://img.shields.io/npm/v/@nextcloud/auth.svg)](https://www.npmjs.com/package/@nextcloud/auth) | ||
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud-libraries.github.io/nextcloud-auth/index.html) | ||
Nextcloud helpers related to authentication and the current user | ||
[![npm](https://img.shields.io/npm/v/@nextcloud/auth.svg)](https://www.npmjs.com/package/@nextcloud/auth) | ||
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud.github.io/nextcloud-auth/index.html) | ||
## Install | ||
```sh | ||
yarn add @nextcloud/auth | ||
npm install @nextcloud/auth --save | ||
``` | ||
```sh | ||
npm install @nextcloud/auth --save | ||
yarn add @nextcloud/auth | ||
``` | ||
## Usage | ||
For detailed information check [the package documentation](https://nextcloud-libraries.github.io/nextcloud-auth/index.html). | ||
One example usage to get the current user: | ||
```ts | ||
import { | ||
getRequestToken, | ||
getCurrentUser, | ||
onRequestTokenUpdate, | ||
} from '@nextcloud/auth' | ||
import { getCurrentUser } from '@nextcloud/auth' | ||
@@ -33,3 +36,1 @@ const user = getCurrentUser() | ||
``` | ||
For more imformation check [nextcloud.github.io/nextcloud-auth](https://nextcloud.github.io/nextcloud-auth/index.html) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
53856
13
214
36
0
2
+ Added@nextcloud/browser-storage@0.4.0(transitive)
+ Added@types/node@20.17.9(transitive)
+ Addedcore-js@3.37.0(transitive)
- Removed@types/node@20.17.7(transitive)
Updated@nextcloud/event-bus@^3.3.1