Skip to content

Commit c580bf2

Browse files
committed
saas
1 parent 719151b commit c580bf2

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

.mcp.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mcpServers": {
3+
"chrome-devtools": {
4+
"command": "chrome-devtools-mcp",
5+
"args": []
6+
}
7+
}
8+
}

apps/server/objectstack.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default defineStack({
8282
new AuthPlugin({
8383
secret: process.env.AUTH_SECRET ?? 'dev-secret-please-change-in-production-min-32-chars',
8484
baseUrl,
85+
plugins: { organization: true },
8586
}),
8687
new SecurityPlugin(),
8788
new AuditPlugin(),

framework.code-workspace

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"path": "../object-ui"
8+
}
9+
],
10+
"settings": {}
11+
}

packages/plugins/plugin-auth/src/objects/sys-session.object.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ export const SysSession = ObjectSchema.create({
6565
label: 'User Agent',
6666
required: false,
6767
}),
68+
69+
active_organization_id: Field.text({
70+
label: 'Active Organization ID',
71+
required: false,
72+
}),
73+
74+
active_team_id: Field.text({
75+
label: 'Active Team ID',
76+
required: false,
77+
}),
6878
},
6979

7080
indexes: [

packages/plugins/plugin-hono-server/src/hono-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class HonoServerPlugin implements Plugin {
158158
// the better-auth `bearer()` plugin can deliver rotated
159159
// session tokens to cross-origin clients (see plugin-auth).
160160
// User-supplied exposeHeaders are merged with this default.
161-
const defaultAllowHeaders = ['Content-Type', 'Authorization', 'X-Requested-With'];
161+
const defaultAllowHeaders = ['Content-Type', 'Authorization', 'X-Requested-With', 'X-Tenant-ID'];
162162
const defaultExposeHeaders = ['set-auth-token'];
163163
const allowHeaders = corsOpts.allowHeaders ?? defaultAllowHeaders;
164164
const exposeHeaders = Array.from(new Set([

0 commit comments

Comments
 (0)