Skip to content

Commit e824e8c

Browse files
authored
add stackAuthComponent to convex readme (#999)
1 parent dfd1fb7 commit e824e8c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • packages/template/src/integrations/convex/component

packages/template/src/integrations/convex/component/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ export default {
2828
}
2929
```
3030

31+
Next, update or create a file in `convex/convex.config.ts`:
32+
33+
```ts
34+
import { defineApp } from "convex/server";
35+
import stackAuthComponent from "@stackframe/js/convex.config"; // Vanilla JS
36+
// or: import stackAuthComponent from "@stackframe/react/convex.config"; // React
37+
// or: import stackAuthComponent from "@stackframe/stack/convex.config"; // Next.js
38+
39+
40+
const app = defineApp();
41+
app.use(stackAuthComponent);
42+
43+
export default app;
44+
```
45+
3146
Then, update your Convex client to use Stack Auth:
3247

3348
```ts

0 commit comments

Comments
 (0)