@absolutejs/auth 0.31.0 → 0.33.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.
@@ -33,7 +33,7 @@ export declare const signout: <UserType>({ authSessionStore, signoutRoute, onSig
33
33
  headers: unknown;
34
34
  response: {
35
35
  400: "Cookies are missing";
36
- 401: "No auth provider found" | "No user session id found";
36
+ 401: "No user session id found";
37
37
  200: Response;
38
38
  422: {
39
39
  type: "validation";
package/dist/types.d.ts CHANGED
@@ -175,7 +175,11 @@ export type OnStatus<UserType> = (({ user }: {
175
175
  user: UserType | null;
176
176
  }) => void | Promise<void>) | undefined;
177
177
  export type OnSignOut<UserType> = (({ authProvider, userSessionId, session }: {
178
- authProvider: string;
178
+ /** Set only when the session was minted by the OAuth2 `/authorize` flow —
179
+ * credentials, MFA, passwordless, SSO, WebAuthn, and impersonation-minted
180
+ * sessions sign out without one. Use it to revoke the upstream provider
181
+ * token when present; ignore when undefined. */
182
+ authProvider: string | undefined;
179
183
  userSessionId: UserSessionId;
180
184
  session: SessionRecord<UserType>;
181
185
  }) => void | Promise<void>) | undefined;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.31.0",
2
+ "version": "0.33.0",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "license": "CC BY-NC 4.0",
11
11
  "author": "Alex Kahn",
12
12
  "scripts": {
13
- "build": "rm -rf dist && bun build src/index.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/plugins/index.ts --outdir dist --sourcemap --target=bun --external elysia --external react && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json",
13
+ "build": "rm -rf dist && bun build src/index.ts src/htmx/index.ts src/client/index.ts src/client/react.ts src/client/vue.ts src/client/solid.ts src/client/svelte.ts src/plugins/index.ts --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json",
14
14
  "config": "absolute config",
15
15
  "test": "bun test",
16
16
  "format": "absolute prettier --write",
@@ -29,11 +29,23 @@
29
29
  "types": "./dist/index.d.ts",
30
30
  "peerDependencies": {
31
31
  "elysia": ">= 1.4.26",
32
- "react": ">=18 <20"
32
+ "react": ">=18 <20",
33
+ "solid-js": ">=1.8",
34
+ "svelte": ">=4",
35
+ "vue": ">=3.4"
33
36
  },
34
37
  "peerDependenciesMeta": {
35
38
  "react": {
36
39
  "optional": true
40
+ },
41
+ "solid-js": {
42
+ "optional": true
43
+ },
44
+ "svelte": {
45
+ "optional": true
46
+ },
47
+ "vue": {
48
+ "optional": true
37
49
  }
38
50
  },
39
51
  "dependencies": {
@@ -56,8 +68,11 @@
56
68
  "eslint-plugin-security": "^4.0.0",
57
69
  "globals": "^17.4.0",
58
70
  "prettier": "3.5.3",
71
+ "solid-js": "^1.9.13",
72
+ "svelte": "^5.55.9",
59
73
  "typescript": "5.8.3",
60
- "typescript-eslint": "^8.57.2"
74
+ "typescript-eslint": "^8.57.2",
75
+ "vue": "^3.5.34"
61
76
  },
62
77
  "module": "./dist/index.js",
63
78
  "exports": {
@@ -84,6 +99,18 @@
84
99
  "./react": {
85
100
  "import": "./dist/client/react.js",
86
101
  "types": "./dist/client/react.d.ts"
102
+ },
103
+ "./solid": {
104
+ "import": "./dist/client/solid.js",
105
+ "types": "./dist/client/solid.d.ts"
106
+ },
107
+ "./svelte": {
108
+ "import": "./dist/client/svelte.js",
109
+ "types": "./dist/client/svelte.d.ts"
110
+ },
111
+ "./vue": {
112
+ "import": "./dist/client/vue.js",
113
+ "types": "./dist/client/vue.d.ts"
87
114
  }
88
115
  },
89
116
  "type": "module",