stack/packages/stack-shared/src/utils
BilalG1 3fe82b68b6
Convex implementation (#913)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Add Convex integration with new auth helpers, update access token
handling, and include documentation, examples, and tests for the new
features.
> 
>   - **Features**:
> - Add Convex integration with new auth helpers for Convex clients and
HTTP in `client-app-impl.ts` and `server-app-impl.ts`.
> - Support for Convex context in user APIs and partial user retrieval.
> - Access tokens now include `is_anonymous` for better anonymous
handling in `tokens.tsx`.
>   - **Documentation**:
> - Add Convex integration guide in `docs/templates/others/convex.mdx`.
> - Update docs navigation in `docs/docs-platform.yml` and
`docs/templates/meta.json`.
>   - **Examples**:
> - Add Convex + Next.js example app in `examples/convex` with auth
wiring, functions, schema, and UI.
>   - **Tests**:
>     - Add E2E tests for Convex auth flows in `convex.test.ts`.
> - Update JWT payload checks in `backend-helpers.ts` and
`anonymous-comprehensive.test.ts`.
>   - **Chores**:
>     - Add Convex dependencies in `package.json` files.
> - Update CI steps for example environments in `e2e-api-tests.yaml` and
`e2e-source-of-truth-api-tests.yaml`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for aa0983a8b7. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>

----


<!-- ELLIPSIS_HIDDEN -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Convex integration: auth helpers for Convex clients/HTTP, Convex-aware
user APIs, and partial-user retrieval (token/convex).
- Access tokens now surface is_anonymous for clearer anonymous handling.

- **Documentation**
  - Added Convex integration guide and nav entries.

- **Examples**
- New Convex + Next.js example app with auth wiring, backend functions,
schema, and UI.

- **Tests**
  - Added E2E tests covering Convex auth flows and JWT payload checks.

- **Chores**
  - Added Convex deps, CI env steps, and workspace/test config updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-09-24 19:16:45 +00:00
..
api-keys.tsx tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
arrays.tsx batch sending (#875) 2025-09-11 15:42:51 -07:00
base64.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
booleans.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
browser-compat.tsx Better specs for Docker GH Action 2024-12-11 19:02:49 -08:00
bytes.tsx Data vaults (#871) 2025-08-30 23:42:56 -07:00
caches.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
compile-time.tsx Split stack-app.ts file into multiple files (#492) 2025-03-02 21:20:42 -08:00
crypto.tsx Data vaults (#871) 2025-08-30 23:42:56 -07:00
currencies.tsx payments schema changes, ledger algo, stackable items (#862) 2025-08-27 20:13:22 +00:00
currency-constants.tsx payments schema changes, ledger algo, stackable items (#862) 2025-08-27 20:13:22 +00:00
dates.tsx payments schema changes, ledger algo, stackable items (#862) 2025-08-27 20:13:22 +00:00
dom.tsx Fix lint errors 2024-06-06 13:35:29 +02:00
env.tsx JS lib docs (#444) 2025-02-20 00:48:05 +01:00
errors.tsx Even more better error messages 2025-07-30 13:16:14 -07:00
esbuild.tsx Fix STACK-BACKEND-FF 2025-09-09 15:33:59 -07:00
featurebase.tsx Feature/stack companion (#769) 2025-08-12 15:12:20 -05:00
fs.tsx added writeFileSyncIfChanged to all the codegen 2025-02-19 12:11:17 -08:00
functions.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
geo.tsx Active Sessions Page (#528) 2025-03-12 22:35:32 +01:00
globals.tsx Source of Truth (#660) 2025-07-11 17:59:03 -07:00
hashes.tsx Fix docker (#664) 2025-05-08 01:31:03 +02:00
html.tsx Feature/stack companion (#769) 2025-08-12 15:12:20 -05:00
http.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
ips.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
json.tsx Widget subgrids 2025-07-13 22:16:42 -07:00
jwt.tsx Even better JWT info 2025-09-12 18:13:57 -07:00
locks.tsx Added sign out lock (#374) 2024-12-20 18:38:04 +01:00
maps.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
math.tsx Add inline unit tests to utility functions in stack-shared (#467) 2025-02-26 16:11:30 -08:00
node-http.tsx Force dynamic 2024-12-01 01:31:22 -08:00
numbers.tsx Workflows (#873) 2025-09-03 01:22:08 -07:00
oauth.tsx Add an OAuth provider for Twitch (#728) 2025-07-23 02:31:47 +02:00
objects.tsx Several project config improvements (#811) 2025-07-29 04:13:46 -07:00
paginated-lists.tsx Convex implementation (#913) 2025-09-24 19:16:45 +00:00
passkey.tsx Passkey support (#321) 2024-10-28 16:56:46 -07:00
promises.tsx Workflows (#873) 2025-09-03 01:22:08 -07:00
proxies.tsx Reduce test flakeyness (#517) 2025-03-07 13:34:50 -08:00
react.tsx Payments UX update (#863) 2025-08-27 17:28:01 -07:00
results.tsx Better RetryErrors (#553) 2025-04-04 09:40:28 -07:00
sentry.tsx Increase Sentry maxValueLength 2024-12-11 18:56:42 -08:00
stores.tsx Added sign out lock (#374) 2024-12-20 18:38:04 +01:00
strings.nicify.test.ts Better RetryErrors (#553) 2025-04-04 09:40:28 -07:00
strings.tsx Exclude anonymous users from metrics 2025-08-27 11:38:47 -07:00
telemetry.tsx Add tracing to ESBuild 2025-07-31 16:22:55 -07:00
types.tsx Email Drafts (#849) 2025-09-10 22:57:18 +00:00
unicode.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00
urls.tsx Wildcard domains (#830) 2025-08-19 22:59:21 -07:00
uuids.tsx [DEVIN: Konsti] Add in-source unit tests to stack-shared utilities (#485) 2025-02-28 01:47:37 +00:00