nuxt-auth-utils 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -116,10 +116,15 @@ You can define the type for your user session by creating a type declaration fil
|
|
|
116
116
|
|
|
117
117
|
```ts
|
|
118
118
|
declare module '#auth-utils' {
|
|
119
|
+
interface User {
|
|
120
|
+
// Add your own fields
|
|
121
|
+
}
|
|
122
|
+
|
|
119
123
|
interface UserSession {
|
|
120
|
-
//
|
|
124
|
+
// Add your own fields
|
|
121
125
|
}
|
|
122
126
|
}
|
|
127
|
+
|
|
123
128
|
export {}
|
|
124
129
|
```
|
|
125
130
|
|
|
@@ -243,14 +248,14 @@ npm run release
|
|
|
243
248
|
```
|
|
244
249
|
|
|
245
250
|
<!-- Badges -->
|
|
246
|
-
[npm-version-src]: https://img.shields.io/npm/v/nuxt-auth-utils/latest.svg?style=flat&colorA=
|
|
251
|
+
[npm-version-src]: https://img.shields.io/npm/v/nuxt-auth-utils/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
247
252
|
[npm-version-href]: https://npmjs.com/package/nuxt-auth-utils
|
|
248
253
|
|
|
249
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-auth-utils.svg?style=flat&colorA=
|
|
254
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-auth-utils.svg?style=flat&colorA=020420&colorB=00DC82
|
|
250
255
|
[npm-downloads-href]: https://npmjs.com/package/nuxt-auth-utils
|
|
251
256
|
|
|
252
|
-
[license-src]: https://img.shields.io/npm/l/nuxt-auth-utils.svg?style=flat&colorA=
|
|
257
|
+
[license-src]: https://img.shields.io/npm/l/nuxt-auth-utils.svg?style=flat&colorA=020420&colorB=00DC82
|
|
253
258
|
[license-href]: https://npmjs.com/package/nuxt-auth-utils
|
|
254
259
|
|
|
255
|
-
[nuxt-src]: https://img.shields.io/badge/Nuxt-
|
|
260
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
256
261
|
[nuxt-href]: https://nuxt.com
|
package/dist/module.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<
|
|
1
|
+
declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<any>>;
|
|
2
2
|
export default _default;
|
|
@@ -27,4 +27,4 @@ export declare function setUserSession(event: H3Event, data: UserSession): Promi
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function replaceUserSession(event: H3Event, data: UserSession): Promise<UserSession>;
|
|
29
29
|
export declare function clearUserSession(event: H3Event): Promise<boolean>;
|
|
30
|
-
export declare function requireUserSession(event: H3Event): Promise<
|
|
30
|
+
export declare function requireUserSession(event: H3Event): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { UserSession } from './session';
|
|
1
|
+
export type { UserSession, User } from './session';
|
|
2
2
|
export type { OAuthConfig } from './oauth-config';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-auth-utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Minimalist Auth module for Nuxt with SSR",
|
|
5
5
|
"repository": "Atinux/nuxt-auth-utils",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test:watch": "vitest watch"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nuxt/kit": "^3.10.
|
|
33
|
+
"@nuxt/kit": "^3.10.2",
|
|
34
34
|
"defu": "^6.1.4",
|
|
35
35
|
"hookable": "^5.5.3",
|
|
36
36
|
"ofetch": "^1.3.3",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@nuxt/devtools": "latest",
|
|
42
42
|
"@nuxt/eslint-config": "^0.2.0",
|
|
43
43
|
"@nuxt/module-builder": "^0.5.5",
|
|
44
|
-
"@nuxt/schema": "^3.10.
|
|
44
|
+
"@nuxt/schema": "^3.10.2",
|
|
45
45
|
"@nuxt/test-utils": "^3.11.0",
|
|
46
46
|
"@nuxt/ui": "^2.13.0",
|
|
47
47
|
"@nuxt/ui-pro": "^0.7.5",
|
|
48
|
-
"@types/node": "^20.11.
|
|
48
|
+
"@types/node": "^20.11.19",
|
|
49
49
|
"changelogen": "^0.5.5",
|
|
50
50
|
"eslint": "^8.56.0",
|
|
51
|
-
"nuxt": "^3.10.
|
|
51
|
+
"nuxt": "^3.10.2",
|
|
52
52
|
"typescript": "^5.3.3",
|
|
53
53
|
"vitest": "^1.2.2",
|
|
54
54
|
"vue-tsc": "^1.8.27"
|