Tom Moor and Claude Opus 5.5
00b124d03c
chore: Rename APIContext to Context and flatten its fields ( #14684 )
...
* chore: Rename APIContext to Context and flatten its fields
Auth and transaction now live directly on the context instead of in
ctx.state and a nested ctx.context, and model helpers read them directly.
APIContext remains as a deprecated alias.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Remove deprecated APIContext alias
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* fix: Read auth from context in OAuth provider callbacks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Add withUser and withTransaction context helpers
Replaces manual createContext rebuilds that copy fields from an existing context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
* chore: Remove arbitrary property access from Koa context types
AppContext and Context no longer inherit the any index signature from
Koa's DefaultContext, custom fields are declared explicitly, and importing
Koa's loose Context type is disallowed by lint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-11-23 23:17:06 -05:00
Tom Moor
147014c6d6
fix: Claim transfer tokens atomically on redemption ( #14693 )
2026-11-23 19:41:24 -05:00
Tom Moor
e0895fc548
Refine authentication token handling ( #14572 )
2026-11-12 23:00:42 -05:00
Tom Moor
f8446a3c78
fix: Tighten session token validation order ( #14542 )
...
* fix: Tighten session token validation order
* test: Rename signature test
2026-11-12 09:48:13 -05:00
Tom Moor
a58962101d
fix: Tighten email sign-in link handling ( #14089 )
2026-10-13 22:49:05 -04:00
Tom Moor
6630ffcc5a
fix: Improve collaboration connection lifecycle ( #13949 )
2026-10-05 08:52:14 -04:00
Tom Moor and Claude Fable 5
a1d0520c9f
Add missing JSDoc to exported members in app and server utils ( #12940 )
...
* Add missing JSDoc to exported members in app and server utils
Documents all exported functions, classes, enums, and constants in
app/utils and server/utils that were missing JSDoc, per the project
documentation guidelines.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU
* Use @returns tag to match codebase convention
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU
---------
Co-authored-by: Claude <noreply@anthropic.com >
2026-07-08 08:30:11 -04:00
Tom Moor
d9aec40313
chore: Store service in JWT ( #11136 )
...
* chore: Store service in JWT
* docs
* fix: Remove early return
2026-01-10 12:28:00 -05:00
Tom Moor
bf45e97641
chore: Enforce type import consistency ( #10968 )
...
* Update types
* fix circular dep
* type imports
* lint type imports and --fix
2025-12-19 23:07:02 -05:00
Tom Moor
9ebcf6cc4c
chore: Move user suspension check inside getUserForJWT ( #10636 )
2025-11-13 19:23:59 -05:00
Tom Moor
9cadcc668c
fix: Update email magic links ( #10471 )
...
* fix: Update email magic links to check IP within time limit rather than usage
* Add option to force OTP method
2025-10-25 12:23:45 -04:00
codegen-sh[bot] and Tom Moor
758d4edbb9
Upgrade @typescript-eslint dependencies to v8.33.0 ( #9363 )
...
* Upgrade @typescript-eslint dependencies from v6.21.0 to v8.33.0
- Updated @typescript-eslint/eslint-plugin from ^6.21.0 to ^8.33.0
- Updated @typescript-eslint/parser from ^6.21.0 to ^8.33.0
- Tested linting functionality to ensure compatibility
- This brings the latest TypeScript ESLint features and bug fixes
* lint
* tsc
---------
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com >
2025-06-01 11:01:15 -04:00
Tom Moor
86cfd62afa
feat: Allow users to change email in-app ( #8119 )
2024-12-25 02:58:26 -08:00
Tom Moor
7eb6dcf00b
fix: Prevent email login token reuse
2024-06-04 23:38:00 -04:00
Tom Moor
dd4c8c5546
fix: Add explicit error for missing auth token
2024-06-04 21:36:26 -04:00
Tom Moor
41a6f77998
fix: Types on overridden findByPk methods ( #5908 )
2023-10-01 12:02:56 -07:00
Apoorv Mishra and Tom Moor
67b1fe5514
Local file storage ( #5763 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2023-09-20 15:12:03 -07:00
Tom Moor
39e12cef65
chore: Use httpOnly authentication cookie ( #5552 )
2023-07-15 13:56:32 -07:00
Tom Moor
863f22750f
feat: Add optional notification email when invite is accepted ( #3718 )
...
* feat: Add optional notification email when invite is accepted
* Refactor to use beforeSend
2022-07-02 05:40:40 -07:00
Tom Moor
7e216109dc
fix: Remove single-usage restriction on magic link tokens as these were consumed by link scanning software
2022-02-16 13:15:06 -08:00
Tom Moor
b20a341f0c
chore: Typescript database models ( #2886 )
...
closes #2798
2022-01-06 18:24:28 -08:00
Tom Moor
15b1069bcc
chore: Move to Typescript ( #2783 )
...
This PR moves the entire project to Typescript. Due to the ~1000 ignores this will lead to a messy codebase for a while, but the churn is worth it – all of those ignore comments are places that were never type-safe previously.
closes #1282
2021-11-29 06:40:55 -08:00