nuxt-auth-utils 0.0.25 → 0.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/README.md +87 -8
- package/dist/module.json +2 -2
- package/dist/module.mjs +22 -24
- package/dist/runtime/app/components/AuthState.vue +17 -0
- package/dist/runtime/{composables → app/composables}/session.d.ts +4 -0
- package/dist/runtime/{composables/session.mjs → app/composables/session.js} +7 -0
- package/dist/runtime/app/plugins/session.client.js +8 -0
- package/dist/runtime/app/plugins/session.server.js +11 -0
- package/dist/runtime/server/api/{session.delete.mjs → session.delete.js} +1 -1
- package/dist/runtime/server/api/{session.get.mjs → session.get.js} +1 -1
- package/dist/runtime/server/lib/oauth/{auth0.mjs → auth0.js} +2 -3
- package/dist/runtime/server/lib/oauth/{battledotnet.mjs → battledotnet.js} +1 -2
- package/dist/runtime/server/lib/oauth/{cognito.mjs → cognito.js} +2 -3
- package/dist/runtime/server/lib/oauth/{discord.mjs → discord.js} +2 -3
- package/dist/runtime/server/lib/oauth/{facebook.mjs → facebook.js} +1 -2
- package/dist/runtime/server/lib/oauth/{github.mjs → github.js} +2 -3
- package/dist/runtime/server/lib/oauth/{google.mjs → google.js} +2 -3
- package/dist/runtime/server/lib/oauth/{keycloak.mjs → keycloak.js} +2 -3
- package/dist/runtime/server/lib/oauth/{linkedin.mjs → linkedin.js} +2 -3
- package/dist/runtime/server/lib/oauth/{microsoft.mjs → microsoft.js} +2 -3
- package/dist/runtime/server/lib/oauth/paypal.d.ts +47 -0
- package/dist/runtime/server/lib/oauth/paypal.js +104 -0
- package/dist/runtime/server/lib/oauth/{spotify.mjs → spotify.js} +2 -3
- package/dist/runtime/server/lib/oauth/steam.d.ts +15 -0
- package/dist/runtime/server/lib/oauth/steam.js +54 -0
- package/dist/runtime/server/lib/oauth/{twitch.mjs → twitch.js} +2 -3
- package/dist/runtime/server/lib/oauth/x.d.ts +41 -0
- package/dist/runtime/server/lib/oauth/x.js +98 -0
- package/dist/runtime/server/lib/oauth/xsuaa.d.ts +26 -0
- package/dist/runtime/server/lib/oauth/xsuaa.js +73 -0
- package/dist/runtime/server/utils/oauth.d.ts +20 -12
- package/dist/runtime/server/utils/oauth.js +34 -0
- package/dist/runtime/server/utils/session.d.ts +15 -3
- package/dist/runtime/types/index.d.ts +2 -2
- package/dist/runtime/types/oauth-config.js +0 -0
- package/dist/runtime/types/session.d.ts +19 -0
- package/dist/runtime/types/session.js +0 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +15 -14
- package/dist/runtime/plugins/session.server.d.ts +0 -2
- package/dist/runtime/plugins/session.server.mjs +0 -9
- package/dist/runtime/server/utils/oauth.mjs +0 -26
- /package/dist/runtime/{types/index.mjs → app/plugins/session.client.d.ts} +0 -0
- /package/dist/runtime/{types/oauth-config.mjs → app/plugins/session.server.d.ts} +0 -0
- /package/dist/runtime/server/plugins/{oauth.mjs → oauth.js} +0 -0
- /package/dist/runtime/server/utils/{session.mjs → session.js} +0 -0
- /package/dist/runtime/types/{session.mjs → index.js} +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-auth-utils",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Minimalist Auth module for Nuxt with SSR",
|
|
5
5
|
"repository": "Atinux/nuxt-auth-utils",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"packageManager": "pnpm@9.1.3",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"types": "./dist/types.d.ts",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"test:watch": "vitest watch"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@nuxt/kit": "^3.
|
|
34
|
+
"@nuxt/kit": "^3.12.2",
|
|
34
35
|
"defu": "^6.1.4",
|
|
35
36
|
"hookable": "^5.5.3",
|
|
36
37
|
"ofetch": "^1.3.4",
|
|
@@ -39,20 +40,20 @@
|
|
|
39
40
|
"uncrypto": "^0.1.3"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@iconify-json/simple-icons": "^1.1.
|
|
43
|
+
"@iconify-json/simple-icons": "^1.1.106",
|
|
43
44
|
"@nuxt/devtools": "latest",
|
|
44
|
-
"@nuxt/eslint-config": "^0.3.
|
|
45
|
-
"@nuxt/module-builder": "^0.
|
|
46
|
-
"@nuxt/schema": "^3.
|
|
47
|
-
"@nuxt/test-utils": "^3.
|
|
48
|
-
"@nuxt/ui": "^2.
|
|
49
|
-
"@nuxt/ui-pro": "^1.
|
|
50
|
-
"@types/node": "^20.
|
|
45
|
+
"@nuxt/eslint-config": "^0.3.13",
|
|
46
|
+
"@nuxt/module-builder": "^0.7.1",
|
|
47
|
+
"@nuxt/schema": "^3.12.2",
|
|
48
|
+
"@nuxt/test-utils": "^3.13.1",
|
|
49
|
+
"@nuxt/ui": "^2.17.0",
|
|
50
|
+
"@nuxt/ui-pro": "^1.3.0",
|
|
51
|
+
"@types/node": "^20.14.4",
|
|
51
52
|
"changelogen": "^0.5.5",
|
|
52
|
-
"eslint": "^9.
|
|
53
|
-
"nuxt": "^3.
|
|
53
|
+
"eslint": "^9.5.0",
|
|
54
|
+
"nuxt": "^3.12.2",
|
|
54
55
|
"typescript": "^5.4.5",
|
|
55
|
-
"vitest": "^1.
|
|
56
|
-
"vue-tsc": "^2.0.
|
|
56
|
+
"vitest": "^1.6.0",
|
|
57
|
+
"vue-tsc": "^2.0.21"
|
|
57
58
|
}
|
|
58
59
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { githubEventHandler } from "../lib/oauth/github.mjs";
|
|
2
|
-
import { googleEventHandler } from "../lib/oauth/google.mjs";
|
|
3
|
-
import { spotifyEventHandler } from "../lib/oauth/spotify.mjs";
|
|
4
|
-
import { twitchEventHandler } from "../lib/oauth/twitch.mjs";
|
|
5
|
-
import { auth0EventHandler } from "../lib/oauth/auth0.mjs";
|
|
6
|
-
import { microsoftEventHandler } from "../lib/oauth/microsoft.mjs";
|
|
7
|
-
import { discordEventHandler } from "../lib/oauth/discord.mjs";
|
|
8
|
-
import { battledotnetEventHandler } from "../lib/oauth/battledotnet.mjs";
|
|
9
|
-
import { keycloakEventHandler } from "../lib/oauth/keycloak.mjs";
|
|
10
|
-
import { linkedinEventHandler } from "../lib/oauth/linkedin.mjs";
|
|
11
|
-
import { cognitoEventHandler } from "../lib/oauth/cognito.mjs";
|
|
12
|
-
import { facebookEventHandler } from "../lib/oauth/facebook.mjs";
|
|
13
|
-
export const oauth = {
|
|
14
|
-
githubEventHandler,
|
|
15
|
-
spotifyEventHandler,
|
|
16
|
-
googleEventHandler,
|
|
17
|
-
twitchEventHandler,
|
|
18
|
-
auth0EventHandler,
|
|
19
|
-
microsoftEventHandler,
|
|
20
|
-
discordEventHandler,
|
|
21
|
-
battledotnetEventHandler,
|
|
22
|
-
keycloakEventHandler,
|
|
23
|
-
linkedinEventHandler,
|
|
24
|
-
cognitoEventHandler,
|
|
25
|
-
facebookEventHandler
|
|
26
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|