@voyant-travel/hono 0.129.0 → 0.129.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/middleware/auth.js +6 -0
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
package/dist/middleware/auth.js
CHANGED
|
@@ -149,6 +149,12 @@ function applyAuthContext(c, auth) {
|
|
|
149
149
|
if (auth.appCredentialGeneration !== undefined) {
|
|
150
150
|
c.set("appCredentialGeneration", auth.appCredentialGeneration);
|
|
151
151
|
}
|
|
152
|
+
if (auth.appWorkloadEnvironmentId) {
|
|
153
|
+
c.set("appWorkloadEnvironmentId", auth.appWorkloadEnvironmentId);
|
|
154
|
+
}
|
|
155
|
+
if (auth.appContractGeneration !== undefined) {
|
|
156
|
+
c.set("appContractGeneration", auth.appContractGeneration);
|
|
157
|
+
}
|
|
152
158
|
if (auth.appTokenMode)
|
|
153
159
|
c.set("appTokenMode", auth.appTokenMode);
|
|
154
160
|
if (auth.appViewerId)
|
package/dist/types.d.ts
CHANGED
|
@@ -18,7 +18,8 @@ export interface VoyantBindings {
|
|
|
18
18
|
INTERNAL_API_KEY?: string;
|
|
19
19
|
INTERNAL_API_KEY_SCOPES?: string;
|
|
20
20
|
SESSION_CLAIMS_SECRET?: string;
|
|
21
|
-
|
|
21
|
+
BETTER_AUTH_ADMIN_SECRET?: string;
|
|
22
|
+
BETTER_AUTH_CUSTOMER_SECRET?: string;
|
|
22
23
|
DATABASE_URL: string;
|
|
23
24
|
CORS_ALLOWLIST?: string;
|
|
24
25
|
APP_URL?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/hono",
|
|
3
|
-
"version": "0.129.
|
|
3
|
+
"version": "0.129.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"drizzle-orm": "^0.45.2",
|
|
131
131
|
"hono": "^4.12.27",
|
|
132
132
|
"zod": "^4.4.3",
|
|
133
|
+
"@voyant-travel/core": "^0.127.1",
|
|
133
134
|
"@voyant-travel/db": "^0.114.13",
|
|
134
|
-
"@voyant-travel/core": "^0.127.0",
|
|
135
135
|
"@voyant-travel/types": "^0.109.4",
|
|
136
136
|
"@voyant-travel/utils": "^0.107.1",
|
|
137
137
|
"@voyant-travel/workflows": "^0.122.6"
|