Skip to content

Release 1.0.0

Choose a tag to compare

@jim-verducci jim-verducci released this 04 Oct 21:18
· 9 commits to main since this release
1acd750

Version 1.0.0 - Major Release

Breaking Changes

  • Renamed default_tenant_domain_name → default_tenant_name (LoginConfig)
  • Renamed tenant_domain_name → tenant_name (CallbackData, LogoutConfig)
  • Changed UserInfo from dict to typed Pydantic model with field name mappings (e.g., sub → user_id)
  • Added UserInfoRole model for typed role data
  • Renamed req parameter to request for WristbandAuth methods

New Features

  • Built-in session management: Added SessionMiddleware with encrypted cookie-based sessions
  • CSRF protection: Automatic token generation and validation via Synchronizer Token Pattern
  • Route protection: New create_session_auth_dependency() method for FastAPI dependency-based auth with automatic token refresh
  • Session/Token endpoints: Added get_session_response() and get_token_response() helpers for Wristband frontend SDK integration, along with SessionResponse and TokenResponse Pydantic models

Documentation

  • Updated README with complete session management guide
  • Added migration guide from v0.x to v1.x
  • Expanded callback() documentation with UserInfo/UserInfoRole model tables