mulguard 1.1.8 → 1.2.0
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/package.json +119 -117
- package/src/index.ts +8 -1
package/package.json
CHANGED
|
@@ -1,117 +1,119 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mulguard",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Authentication for Next.js with Backend-First Architecture",
|
|
5
|
-
"homepage": "https://mulverse.com/packages/mulguard",
|
|
6
|
-
"repository": "https://github.com/mulverse/mulverse.git",
|
|
7
|
-
"author": "Mohamed Alhabob <info@mulverse.com>",
|
|
8
|
-
"contributors": [
|
|
9
|
-
"Mohamed Alhabob <info@mulverse.com>"
|
|
10
|
-
],
|
|
11
|
-
"type": "module",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./index.d.ts",
|
|
15
|
-
"import": "./index.js",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"./jwt": {
|
|
19
|
-
"types": "./jwt.d.ts",
|
|
20
|
-
"import": "./jwt.js",
|
|
21
|
-
"default": "./jwt.js"
|
|
22
|
-
},
|
|
23
|
-
"./middleware": {
|
|
24
|
-
"types": "./middleware.d.ts",
|
|
25
|
-
"import": "./middleware.js",
|
|
26
|
-
"default": "./middleware.js"
|
|
27
|
-
},
|
|
28
|
-
"./next": {
|
|
29
|
-
"types": "./next.d.ts",
|
|
30
|
-
"import": "./next.js",
|
|
31
|
-
"default": "./next.js"
|
|
32
|
-
},
|
|
33
|
-
"./providers": {
|
|
34
|
-
"types": "./providers/index.d.ts"
|
|
35
|
-
},
|
|
36
|
-
"./adapters": {
|
|
37
|
-
"types": "./adapters.d.ts"
|
|
38
|
-
},
|
|
39
|
-
"./providers/*": {
|
|
40
|
-
"types": "./providers/*.d.ts",
|
|
41
|
-
"import": "./providers/*.js",
|
|
42
|
-
"default": "./providers/*.js"
|
|
43
|
-
},
|
|
44
|
-
"./react": {
|
|
45
|
-
"types": "./react.d.ts",
|
|
46
|
-
"import": "./react.js",
|
|
47
|
-
"default": "./react.js"
|
|
48
|
-
},
|
|
49
|
-
"./webauthn": {
|
|
50
|
-
"types": "./webauthn.d.ts",
|
|
51
|
-
"import": "./webauthn.js",
|
|
52
|
-
"default": "./webauthn.js"
|
|
53
|
-
},
|
|
54
|
-
"./package.json": "./package.json"
|
|
55
|
-
},
|
|
56
|
-
"keywords": [
|
|
57
|
-
"react",
|
|
58
|
-
"nodejs",
|
|
59
|
-
"oauth",
|
|
60
|
-
"jwt",
|
|
61
|
-
"oauth2",
|
|
62
|
-
"authentication",
|
|
63
|
-
"nextjs",
|
|
64
|
-
"csrf",
|
|
65
|
-
"oidc",
|
|
66
|
-
"mulguard"
|
|
67
|
-
],
|
|
68
|
-
"scripts": {
|
|
69
|
-
"build": "pnpm clean && pnpm providers && node ../../node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/bin/tsc",
|
|
70
|
-
"clean": "node -e \"const fs = require('fs'); const path = require('path'); ['*.js', '*.d.ts*', 'lib', 'providers'].forEach(p => { try { if (fs.existsSync(p)) fs.rmSync(p, {recursive: true, force: true}); } catch(e) {} });\"",
|
|
71
|
-
"dev": "pnpm providers && tsc -w",
|
|
72
|
-
"test": "vitest run -c ../utils/vitest.config.ts",
|
|
73
|
-
"test:watch": "vitest -c ../utils/vitest.config.ts",
|
|
74
|
-
"test:e2e": "playwright test",
|
|
75
|
-
"providers": "node ../utils/scripts/providers"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "mulguard",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Authentication for Next.js with Backend-First Architecture",
|
|
5
|
+
"homepage": "https://mulverse.com/packages/mulguard",
|
|
6
|
+
"repository": "https://github.com/mulverse/mulverse.git",
|
|
7
|
+
"author": "Mohamed Alhabob <info@mulverse.com>",
|
|
8
|
+
"contributors": [
|
|
9
|
+
"Mohamed Alhabob <info@mulverse.com>"
|
|
10
|
+
],
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"import": "./index.js",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"./jwt": {
|
|
19
|
+
"types": "./jwt.d.ts",
|
|
20
|
+
"import": "./jwt.js",
|
|
21
|
+
"default": "./jwt.js"
|
|
22
|
+
},
|
|
23
|
+
"./middleware": {
|
|
24
|
+
"types": "./middleware.d.ts",
|
|
25
|
+
"import": "./middleware.js",
|
|
26
|
+
"default": "./middleware.js"
|
|
27
|
+
},
|
|
28
|
+
"./next": {
|
|
29
|
+
"types": "./next.d.ts",
|
|
30
|
+
"import": "./next.js",
|
|
31
|
+
"default": "./next.js"
|
|
32
|
+
},
|
|
33
|
+
"./providers": {
|
|
34
|
+
"types": "./providers/index.d.ts"
|
|
35
|
+
},
|
|
36
|
+
"./adapters": {
|
|
37
|
+
"types": "./adapters.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./providers/*": {
|
|
40
|
+
"types": "./providers/*.d.ts",
|
|
41
|
+
"import": "./providers/*.js",
|
|
42
|
+
"default": "./providers/*.js"
|
|
43
|
+
},
|
|
44
|
+
"./react": {
|
|
45
|
+
"types": "./react.d.ts",
|
|
46
|
+
"import": "./react.js",
|
|
47
|
+
"default": "./react.js"
|
|
48
|
+
},
|
|
49
|
+
"./webauthn": {
|
|
50
|
+
"types": "./webauthn.d.ts",
|
|
51
|
+
"import": "./webauthn.js",
|
|
52
|
+
"default": "./webauthn.js"
|
|
53
|
+
},
|
|
54
|
+
"./package.json": "./package.json"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"react",
|
|
58
|
+
"nodejs",
|
|
59
|
+
"oauth",
|
|
60
|
+
"jwt",
|
|
61
|
+
"oauth2",
|
|
62
|
+
"authentication",
|
|
63
|
+
"nextjs",
|
|
64
|
+
"csrf",
|
|
65
|
+
"oidc",
|
|
66
|
+
"mulguard"
|
|
67
|
+
],
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "pnpm clean && pnpm providers && node ../../node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/bin/tsc",
|
|
70
|
+
"clean": "node -e \"const fs = require('fs'); const path = require('path'); ['*.js', '*.d.ts*', 'lib', 'providers'].forEach(p => { try { if (fs.existsSync(p)) fs.rmSync(p, {recursive: true, force: true}); } catch(e) {} });\"",
|
|
71
|
+
"dev": "pnpm providers && tsc -w",
|
|
72
|
+
"test": "vitest run -c ../utils/vitest.config.ts",
|
|
73
|
+
"test:watch": "vitest -c ../utils/vitest.config.ts",
|
|
74
|
+
"test:e2e": "playwright test",
|
|
75
|
+
"providers": "node ../utils/scripts/providers",
|
|
76
|
+
"prepack": "node scripts/prepack.js",
|
|
77
|
+
"postpack": "node scripts/postpack.js"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"*.d.ts*",
|
|
81
|
+
"*.js",
|
|
82
|
+
"lib",
|
|
83
|
+
"providers",
|
|
84
|
+
"src"
|
|
85
|
+
],
|
|
86
|
+
"license": "ISC",
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@mulverse/mulguard-core": "^1.0.2"
|
|
92
|
+
},
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"@simplewebauthn/browser": "^9.0.1",
|
|
95
|
+
"@simplewebauthn/server": "^9.0.2",
|
|
96
|
+
"next": "^14.0.0-0 || ^15.0.0 || ^16.0.0",
|
|
97
|
+
"nodemailer": "^7.0.7",
|
|
98
|
+
"react": "^18.2.0 || ^19.0.0"
|
|
99
|
+
},
|
|
100
|
+
"peerDependenciesMeta": {
|
|
101
|
+
"@simplewebauthn/browser": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"@simplewebauthn/server": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"nodemailer": {
|
|
108
|
+
"optional": true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"devDependencies": {
|
|
112
|
+
"@types/react": "18.0.37",
|
|
113
|
+
"dotenv": "^10.0.0",
|
|
114
|
+
"next": "15.3.1",
|
|
115
|
+
"nodemailer": "^7.0.7",
|
|
116
|
+
"react": "^18.2.0",
|
|
117
|
+
"typescript": "5.3.3"
|
|
118
|
+
}
|
|
119
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -108,7 +108,14 @@ export type {
|
|
|
108
108
|
DefaultSession,
|
|
109
109
|
User,
|
|
110
110
|
} from "@mulverse/mulguard-core/types"
|
|
111
|
-
export type {
|
|
111
|
+
export type {
|
|
112
|
+
ServerActionsAdapter,
|
|
113
|
+
AdapterAccount,
|
|
114
|
+
AdapterUser,
|
|
115
|
+
AdapterSession,
|
|
116
|
+
VerificationToken,
|
|
117
|
+
AdapterAuthenticator,
|
|
118
|
+
} from "@mulverse/mulguard-core/adapters"
|
|
112
119
|
|
|
113
120
|
type AppRouteHandlers = Record<
|
|
114
121
|
"GET" | "POST",
|