Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
bb9de21
fix: withOAuthValidation reads request from getContext() (closes #33)
heskew Apr 20, 2026
03f54fc
fix: fail-closed when requireAuth is true and no context is available
heskew Apr 20, 2026
0a5568a
fix: stop calling onValidationError without a request; fix stale v4 J…
heskew Apr 20, 2026
3a4fb45
fix: JSDoc now shows instance-wrap pattern; test no-context callback …
heskew Apr 21, 2026
baedb5f
refactor!: withOAuthValidation wraps a Resource class, not an instance
heskew Apr 21, 2026
7fe7d81
fix: onValidationError sees un-mutated request; cover put/patch/delete
heskew Apr 21, 2026
a81fb40
fix: re-export withOAuthValidation from package entry; explicit prop …
heskew Apr 21, 2026
db072d5
test: cover getOAuthProviders + requireAuth:false expired-token path
heskew Apr 21, 2026
08b9f1e
fix: fail-closed when onValidationError returns undefined
heskew Apr 21, 2026
2c90dfa
docs/test: document + cover clearOAuthSession production vs fallback …
heskew Apr 21, 2026
edef825
doc/test: pin onValidationError contract (requireAuth coupling + stat…
heskew Apr 22, 2026
1fa1e01
fix: close static-method dispatch bypass; preserve 405 for unimplemen…
heskew Apr 22, 2026
e408f7d
fix: preserve 405 against Harper-shaped base; harden dedup across dis…
heskew Apr 23, 2026
b0d770d
Merge remote-tracking branch 'origin/main' into fix/withOAuthValidati…
heskew Apr 23, 2026
1cbfb46
test: pin 3-arg static dispatch shape (target, data, request)
heskew Apr 23, 2026
6e584e8
style: apply prettier to 3-arg static test
heskew Apr 23, 2026
93a7d10
Merge remote-tracking branch 'origin/main' into fix/withOAuthValidati…
heskew Apr 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export {
// Export provider utilities
export { getProvider } from './lib/providers/index.ts';

// Export OAuth session validation wrapper
export { withOAuthValidation, getOAuthProviders } from './lib/withOAuthValidation.ts';
Comment thread
heskew marked this conversation as resolved.
export type { OAuthValidationOptions } from './lib/withOAuthValidation.ts';

// Store hooks registered at module load time and active hookManager
let pendingHooks: OAuthHooks | null = null;
let activeHookManager: HookManager | null = null;
Expand Down
Loading
Loading