Skip to content

Commit 620f3db

Browse files
authored
Document managed auth events proxy (#31)
1 parent 09610c0 commit 620f3db

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/managed-auth-react/README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The component is client-only — `"use client"` is required in any RSC framework
7272

7373
By default the component talks directly to `https://api.onkernel.com`. That works out of the box; nothing else to configure.
7474

75-
If you'd rather keep all auth traffic same-origin (cookies, CSP, observability), set `baseUrl=""` and proxy the three endpoints the package hits through your own framework:
75+
If you'd rather keep all auth traffic same-origin (cookies, CSP, observability), set `baseUrl=""` and proxy the four endpoints the package hits through your own framework:
7676

7777
```ts
7878
// next.config.ts
@@ -91,6 +91,10 @@ export default {
9191
source: "/auth/connections/:id/submit",
9292
destination: `${process.env.KERNEL_BASE_URL}/auth/connections/:id/submit`,
9393
},
94+
{
95+
source: "/auth/connections/:id/events",
96+
destination: `${process.env.KERNEL_BASE_URL}/auth/connections/:id/events`,
97+
},
9498
];
9599
},
96100
};

0 commit comments

Comments
 (0)