You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,10 +58,10 @@ It is recommended to use an AI Agent ([`Roo Code`](https://github.com/RooVetGit/
56
58
simply remove `sst` dependency and `sst.config.ts` if you want to use another solution.
57
59
-*currently only `backend` app is configured, which will deploy a Lambda with Function URL enabled*
58
60
59
-
🔐 Comes with starter-kit for [**Kinde**](https://kinde.com/)[typescript-sdk](https://github.com/kinde-oss/kinde-typescript-sdk), see: `/apps/backend/api/auth`
60
-
-*Add your env variables, activate the auth routes, profit$*
61
+
🔐 Comes with authentication boilerplate via [**WorkOS AuthKit**](https://workos.com/), see: `/apps/backend/api/auth`
62
+
-*Add your env variables, DONE!*
61
63
- Please note that by default `backend` comes with a cookies-based session manager, which have great DX, security and does not require an external database (which also means great performance), but as the `backend` is decoupled with the Nuxt's SSR server, it will not work well with SSR (the session/auth state is not shared).
62
-
So if you use SSR, you could use the official [Nuxt Kinde](https://nuxt.com/modules/kinde) module or implement your own way to manage the session at `apps/backend/src/middlewares/session.ts`.
64
+
So, if you use SSR, you should implement another auth solution.
63
65
- If you have a good session manager implementation, a PR is greatly appreciated!
64
66
65
67
💯 JS is always [**TypeScript**](https://www.typescriptlang.org/) where possible.
Copy file name to clipboardExpand all lines: apps/backend-convex/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,12 @@ Convex helps you kick-start amazing apps super fast and simple.
8
8
9
9
Auth is optional, you can remove it or just put the following sample config into Convex (for testing and development, do not deploy a production app with this config):
**NOTE**: for auth to work with **WorkOS**, you currently need to manually add `aud` field to WorkOS's JWT payload yourself via `JWT Template` feature of WorkOS.
- Multi-platform support, one codebase that works for Node, Cloudflare Workers, AWS Lambda, and more.
12
12
- Efficient providers management pattern, auto-optimize depends on platforms, with on-demand initialization support, sample providers includes:
13
-
-Kinde auth
13
+
-WorkOS AuthKit
14
14
- Convex
15
15
- grammY telegram bot
16
16
- And more minor goodies!
@@ -19,7 +19,7 @@
19
19
20
20
## Structuring cookbook:
21
21
#### Root level:
22
-
Things like 3rd party APIs, DBs, Storages connectors, etc, should be placed in `#src/providers` folder, grouped by their purpose if possible, e.g: `#src/providers/auth/kinde-main.ts`, `#src/providers/db/neon-main.ts`.
22
+
Things like 3rd party APIs, DBs, Storages connectors, etc, should be placed in `#src/providers` folder, grouped by their purpose if possible, e.g: `#src/providers/auth/workos-main.ts`, `#src/providers/db/neon-main.ts`.
23
23
24
24
Things that interact with `#src/providers` should be placed in `#src/services` folder. (like an `user` service)
0 commit comments