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
feat: comprehensive security and type safety improvements
Security fixes (P0):
- Use timing-safe comparison for webhook signature verification
- Remove signature bypass vulnerability (throw error instead of warn+continue)
Feature improvements (P1):
- Export multicast and richMenu from @linekit/messaging
- Add input validation for reply, push, multicast functions
- Add proper Message type definitions with all LINE message types
Type safety (P2):
- Replace `any` with proper types across all packages
- Add isReplyableEvent type guard for Context
- Add WebhookRequest/WebhookResponse interfaces for router
- Add LineAPIErrorResponse type for error handling
- Add RichMenuAction interface
Error handling (P2):
- Add LineLoginError class to @linekit/login
- Handle JSON.parse failures in client.ts
- Add onError callback option to router
OAuth helpers (P3):
- Add generateState() for CSRF protection
- Add validateState() with timing-safe comparison
- Add generateNonce() for ID token validation
Documentation:
- Update README with security features
- Add LINE Login OAuth flow example with state validation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments