Skip to content

v0.3.0-rc.4

Pre-release
Pre-release

Choose a tag to compare

@PineappleBond PineappleBond released this 03 Oct 14:44
· 48 commits to dev since this release

✨ New Features

OAuth2 PKCE Support

Implement RFC 7636 PKCE (Proof Key for Code Exchange) flow for enhanced OAuth2 security:

  • Add generatePKCEParams function and PKCEParams interface
  • Update OAuth2Client.getAuthorizationUrl to accept PKCE parameters
  • Update OAuth2Client.exchangeToken to pass code_verifier
  • Integrate PKCE flow in login component with storage/cleanup
  • Export PKCE types and functions for external use

Files changed:

  • packages/client/src/oauth2-client.ts (+71/-2)
  • packages/component/src/components/login/rtc-login-dialog.ts (+29/-12)
  • packages/client/src/index.ts (+4/-4)
  • packages/component/src/config/auth.ts (+1)

🚀 Performance Improvements

Batch Fetch Optimization

Increase BATCH_SIZE from 10 to 500 in client:

  • Reduce RPC call count for better performance with large datasets
  • Particularly impactful when fetching messages, sessions, and other paginated resources

Files changed:

  • packages/client/src/client.ts (+1/-1)

📦 Package Updates

  • @rtc-agent/client: PKCE support + batch optimization
  • @rtc-agent/component: Login dialog PKCE integration

Co-Authored-By: Claude Code noreply@anthropic.com