@absolutejs/auth 0.53.0 → 0.53.2
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/dist/cli/migrate.js +9 -9
- package/dist/cli/migrate.js.map +3 -3
- package/dist/htmx/index.js +9 -9
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25 -9
- package/dist/index.js.map +6 -5
- package/dist/manifest.d.ts +2 -0
- package/dist/manifest.js +8722 -0
- package/dist/manifest.js.map +123 -0
- package/dist/manifest.json +329 -0
- package/dist/providers/clients.d.ts +1 -1
- package/dist/providers/index.js +9 -9
- package/dist/providers/index.js.map +3 -3
- package/dist/providersFromEnv.d.ts +19 -0
- package/package.json +16 -5
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { OAuth2ConfigurationOptions } from './types';
|
|
2
|
+
export type ProviderSelection = Record<string, {
|
|
3
|
+
scope?: string[];
|
|
4
|
+
searchParams?: [string, string][];
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* Build `providersConfiguration` from a serializable provider selection plus
|
|
8
|
+
* environment credentials, by convention: `<PROVIDER>_CLIENT_ID` and
|
|
9
|
+
* `<PROVIDER>_CLIENT_SECRET` (e.g. `GOOGLE_CLIENT_ID`). This is the bridge
|
|
10
|
+
* between no-code/manifest-driven configuration (which must never contain
|
|
11
|
+
* secrets) and `auth()`'s credential-bearing provider entries — the host app
|
|
12
|
+
* wires env → config, the selection stays serializable.
|
|
13
|
+
*
|
|
14
|
+
* Covers providers whose citra credentials are the standard
|
|
15
|
+
* clientId/clientSecret pair. Providers with richer credential shapes
|
|
16
|
+
* (e.g. Apple's team/key ids) should be configured directly in
|
|
17
|
+
* `providersConfiguration`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const providersFromEnv: (selection: ProviderSelection, env?: Record<string, string | undefined>) => OAuth2ConfigurationOptions;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.53.
|
|
2
|
+
"version": "0.53.2",
|
|
3
3
|
"name": "@absolutejs/auth",
|
|
4
4
|
"description": "An authorization library for absolutejs",
|
|
5
5
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "BSL-1.1",
|
|
18
18
|
"author": "Alex Kahn",
|
|
19
19
|
"scripts": {
|
|
20
|
-
"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 src/providers/index.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js",
|
|
20
|
+
"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 src/providers/index.ts src/manifest.ts --root src --outdir dist --sourcemap --target=bun --external elysia --external react --external vue --external solid-js --external svelte --external @opentelemetry/api --external @simplewebauthn/server --external @node-saml/node-saml && bun build src/cli/migrate.ts --outdir dist/cli --sourcemap --target=bun --external @neondatabase/serverless --external drizzle-orm && bun build src/fingerprint-client/index.ts --outdir dist/fingerprint-client --sourcemap --target=browser && tsc --emitDeclarationOnly --project tsconfig.json && chmod +x dist/cli/migrate.js && absolute-manifest emit",
|
|
21
21
|
"config": "absolute config",
|
|
22
22
|
"test": "bun test",
|
|
23
23
|
"format": "absolute prettier --write",
|
|
@@ -75,7 +75,9 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@absolutejs/linked-providers": "0.0.2",
|
|
77
77
|
"@neondatabase/serverless": "1.0.0",
|
|
78
|
-
"citra": "0.29.
|
|
78
|
+
"citra": "0.29.3",
|
|
79
|
+
"@absolutejs/manifest": "^0.1.0",
|
|
80
|
+
"@sinclair/typebox": "^0.34.0"
|
|
79
81
|
},
|
|
80
82
|
"devDependencies": {
|
|
81
83
|
"@absolutejs/absolute": "^0.19.0-beta.1023",
|
|
@@ -154,7 +156,13 @@
|
|
|
154
156
|
"import": "./dist/client/vue.js",
|
|
155
157
|
"types": "./dist/client/vue.d.ts",
|
|
156
158
|
"require": "./dist/client/vue.js"
|
|
157
|
-
}
|
|
159
|
+
},
|
|
160
|
+
"./manifest": {
|
|
161
|
+
"types": "./dist/manifest.d.ts",
|
|
162
|
+
"import": "./dist/manifest.js",
|
|
163
|
+
"default": "./dist/manifest.js"
|
|
164
|
+
},
|
|
165
|
+
"./manifest.json": "./dist/manifest.json"
|
|
158
166
|
},
|
|
159
167
|
"type": "module",
|
|
160
168
|
"files": [
|
|
@@ -168,5 +176,8 @@
|
|
|
168
176
|
]
|
|
169
177
|
}
|
|
170
178
|
},
|
|
171
|
-
"build": null
|
|
179
|
+
"build": null,
|
|
180
|
+
"absolutejs": {
|
|
181
|
+
"manifestContract": 1
|
|
182
|
+
}
|
|
172
183
|
}
|