@witchcraft/nuxt-auth 0.3.2 → 0.4.1
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 +4 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/server/utils/Auth.js +1 -0
- package/dist/runtime/types.js +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# @witchcraft/nuxt-auth
|
|
2
2
|
|
|
3
|
+
[![Release][release-src]][release-href]
|
|
3
4
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
5
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
6
|
[![License][license-src]][license-href]
|
|
@@ -698,6 +699,9 @@ test("put works", async () => {
|
|
|
698
699
|
|
|
699
700
|
|
|
700
701
|
<!-- Badges -->
|
|
702
|
+
[release-src]: https://github.com/witchcraftjs/nuxt-auth/actions/workflows/release.yml/badge.svg
|
|
703
|
+
[release-href]: https://github.com/witchcraftjs/nuxt-auth/actions/workflows/release.yml
|
|
704
|
+
|
|
701
705
|
[npm-version-src]: https://img.shields.io/npm/v/@witchcraft/nuxt-auth/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
702
706
|
[npm-version-href]: https://npmjs.com/package/@witchcraft/nuxt-auth
|
|
703
707
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -649,6 +649,7 @@ export class Auth {
|
|
|
649
649
|
}
|
|
650
650
|
async createAccessToken(userId, payload = {}) {
|
|
651
651
|
return signJwt({ ...payload, userId }, this.rc.authSecret, {
|
|
652
|
+
// ms is different package version so type doesn't match
|
|
652
653
|
expiresIn: this.externalAccessTokenExpiresIn
|
|
653
654
|
});
|
|
654
655
|
}
|
package/dist/runtime/types.js
CHANGED
|
@@ -16,7 +16,7 @@ export const zExternalCallbackPageQuery = z.object({
|
|
|
16
16
|
})
|
|
17
17
|
);
|
|
18
18
|
export const defaultZodUsernameSchema = z.string().min(3).max(32).regex(/^[\w.]+$/, "Username can only contain letters, numbers, underscores, and periods.");
|
|
19
|
-
export const providerStylesInjectionKey = Symbol("providerStyles");
|
|
19
|
+
export const providerStylesInjectionKey = Symbol.for("@witchcraft/nuxt-auth:providerStyles");
|
|
20
20
|
export const AUTH_ERROR = enumFromArray([
|
|
21
21
|
"USER_ALREADY_REGISTERED",
|
|
22
22
|
"UNKNOWN_PROVIDER",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/nuxt-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Nuxt module for logging.",
|
|
5
5
|
"repository": "witchcraftjs/nuxt-auth",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@types/jsonwebtoken": "^9.0.10",
|
|
42
42
|
"@vueuse/core": "^13.9.0",
|
|
43
43
|
"@witchcraft/nuxt-logger": "^0.0.11",
|
|
44
|
-
"@witchcraft/ui": "0.
|
|
44
|
+
"@witchcraft/ui": "^0.5.0",
|
|
45
45
|
"arctic": "^3.7.0",
|
|
46
46
|
"cookie-es": "^3.1.1",
|
|
47
47
|
"defu": "^6.1.4",
|
|
48
48
|
"h3": "1.15.4",
|
|
49
49
|
"jsonwebtoken": "^9.0.2",
|
|
50
|
-
"ms": "^
|
|
50
|
+
"ms": "^3.0.0-canary.202508261828",
|
|
51
51
|
"nuxt-security": "^2.4.0",
|
|
52
52
|
"unplugin-icons": "^23.0.1",
|
|
53
53
|
"unplugin-vue-components": "^32.0.0",
|
|
@@ -71,10 +71,11 @@
|
|
|
71
71
|
"husky": "^9.1.7",
|
|
72
72
|
"nuxt": "^4.2.1",
|
|
73
73
|
"reka-ui": "^2.5.1",
|
|
74
|
+
"semantic-release": "^25.0.3",
|
|
74
75
|
"tailwindcss": "^4.1.14",
|
|
75
76
|
"typescript": "^5.9.3",
|
|
76
77
|
"vitest": "^3.2.4",
|
|
77
|
-
"vue-tsc": "^3.
|
|
78
|
+
"vue-tsc": "^3.3.3"
|
|
78
79
|
},
|
|
79
80
|
"release": {
|
|
80
81
|
"extends": [
|