@schemavaults/auth-server-sdk 0.28.5 → 0.28.6
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.cjs
CHANGED
|
@@ -89,7 +89,7 @@ var init_resolve_codegen_templates_directory = __esm({
|
|
|
89
89
|
|
|
90
90
|
// src/NextjsAppDirectoryPlugin/codegen-marker.ts
|
|
91
91
|
function getCodegenMarkerComment() {
|
|
92
|
-
const version = true ? "0.28.
|
|
92
|
+
const version = true ? "0.28.6" : "unknown";
|
|
93
93
|
return `${CODEGEN_MARKER_PREFIX}${version}`;
|
|
94
94
|
}
|
|
95
95
|
function hasCodegenMarker(firstLine) {
|
|
@@ -331,7 +331,7 @@ async function main() {
|
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
if (args.includes("--version") || args.includes("-v")) {
|
|
334
|
-
console.log(`${PACKAGE_NAME}@${"0.28.
|
|
334
|
+
console.log(`${PACKAGE_NAME}@${"0.28.6"}`);
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
const command = args.find((arg) => !arg.startsWith("-")) ?? "codegen";
|
|
@@ -12,6 +12,15 @@ import type { PropsWithChildren } from "react";
|
|
|
12
12
|
export interface IAppAuthProviderProps extends PropsWithChildren {
|
|
13
13
|
environment: SchemaVaultsAppEnvironment;
|
|
14
14
|
app_id: AppId;
|
|
15
|
+
/**
|
|
16
|
+
* The auth server's public URL, resolved server-side (e.g. from the
|
|
17
|
+
* SCHEMAVAULTS_AUTH_SERVER_URL environment variable) and threaded in as a
|
|
18
|
+
* prop. Client bundles can't read that env var, so omitting this falls
|
|
19
|
+
* back to the per-environment default auth server URL — only correct when
|
|
20
|
+
* the app targets the default SchemaVaults deployment, not a white-label
|
|
21
|
+
* auth server.
|
|
22
|
+
*/
|
|
23
|
+
auth_server_url?: string;
|
|
15
24
|
default_audiences: readonly string[];
|
|
16
25
|
debug?: boolean;
|
|
17
26
|
authed_on_unauthed_redirect_uri: string;
|
|
@@ -39,6 +48,7 @@ export default function AppAuthProvider({
|
|
|
39
48
|
return (
|
|
40
49
|
<AuthProvider
|
|
41
50
|
app_id={app_id}
|
|
51
|
+
auth_server_url={props.auth_server_url}
|
|
42
52
|
login_uri="/auth/login"
|
|
43
53
|
register_uri="/auth/register"
|
|
44
54
|
authed_on_unauthed_redirect_uri={props.authed_on_unauthed_redirect_uri}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemavaults/auth-server-sdk",
|
|
3
3
|
"description": "TypeScript SDK for building authenticated endpoints/middlewares for the Auth Server and Resource Servers",
|
|
4
|
-
"version": "0.28.
|
|
4
|
+
"version": "0.28.6",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"zod": "3.25.8",
|
|
21
|
-
"@schemavaults/jwt": "0.11.
|
|
22
|
-
"@schemavaults/auth-common": "0.22.
|
|
21
|
+
"@schemavaults/jwt": "0.11.4",
|
|
22
|
+
"@schemavaults/auth-common": "0.22.4",
|
|
23
23
|
"@schemavaults/app-definitions": "0.11.4"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|