flutter_cia library

Classes

AuthResponse
Auth response model
CIAApiClient
CIA API Client with automatic token refresh
CIAAuthGuard
A guard that protects routes based on authentication status
CIAAuthMiddleware
Authentication middleware widget that wraps protected content
CIAAuthMiddlewareConfig
Configuration for auth middleware behavior
CIAAuthProvider
Provider setup helper for CIAAuthState
CIAAuthState
Auth state manager using ChangeNotifier for Provider compatibility
CIABrandingConfig
Configuration for white-label branding
CIAColors
CIA branded colors
CIALoginScreen
Login screen with email/password and phone login support
CIAOrganization
Organization model from CIA API
CIAOrgSelectorScreen
Organization selector screen for choosing which organization to access
CIARegisterScreen
Register screen with email/password registration
CIATokens
Tokens model from CIA API
CIAUser
User model from CIA API
CIAVerificationScreen
OTP verification screen for phone login or email verification
OrgExchangeResponse
Organization exchange response
OrgTokenData
Organization token for federated auth with org-specific servers
PKCEHelper
PKCE helper for OAuth flows
SecureTokenStorage
Secure token storage using platform-specific secure storage
TokenData
Token data model for storing access and refresh tokens

Enums

CIAAuthStatus
Authentication state enum
VerificationType
Verification type when in pending verification state

Mixins

CIAAuthStateMixin<T extends StatefulWidget>
Mixin for pages that need to check auth status

Extensions

CIAAuthContextExtension on BuildContext
Extension methods for BuildContext to access auth state

Typedefs

CIAAuthGuardBuilder = Widget Function(BuildContext context, CIAAuthState authState)
Route guard builder that handles authentication state

Exceptions / Errors

CIAApiException
API Exception with detailed error information