@appforgeapps/shieldforge-types
v0.0.5
Published
Shared TypeScript types for ShieldForge authentication library
Downloads
20
Maintainers
Readme
@shieldforge/types
Shared TypeScript types and interfaces for the ShieldForge authentication library.
Installation
npm install @shieldforge/typesUsage
import type {
User,
AuthUser,
AuthPayload,
LoginInput,
RegisterInput,
UserAccountStatus,
PasswordStrength,
ShieldForgeConfig,
} from '@shieldforge/types';Exported Types
User Types
User- Complete user interface with all fields including sensitive dataAuthUser- Sanitized user interface for client-side use (no passwordHash)UserAccountStatus- Enum for user account status (ACTIVE, INACTIVE, SUSPENDED, PENDING)
Authentication Types
LoginInput- Input type for login operationsRegisterInput- Input type for registrationUpdateProfileInput- Input type for profile updatesUpdatePasswordInput- Input type for password changesAuthPayload- Response type for auth operations (user + token)JwtPayload- JWT token payload structure
Configuration Types
ShieldForgeConfig- Configuration for @shieldforge/coreAuthProviderConfig- Configuration for @shieldforge/reactPasskeyConfig- Configuration for @shieldforge/passkeySmtpConfig- SMTP configuration for email sending
Other Types
Session- Session interfacePasswordStrength- Password strength result (score + feedback)PasskeyCredential- Passkey credential interfaceChallenge- WebAuthn challenge interface
License
MIT
