Shared TypeScript types for ShieldForge authentication library
npm install @appforgeapps/shieldforge-typesShared TypeScript types and interfaces for the ShieldForge authentication library.
``bash`
npm install @shieldforge/types
`typescript`
import type {
User,
AuthUser,
AuthPayload,
LoginInput,
RegisterInput,
UserAccountStatus,
PasswordStrength,
ShieldForgeConfig,
} from '@shieldforge/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)
- 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
- ShieldForgeConfig - Configuration for @shieldforge/coreAuthProviderConfig
- - Configuration for @shieldforge/reactPasskeyConfig
- - Configuration for @shieldforge/passkeySmtpConfig
- - SMTP configuration for email sending
- Session - Session interfacePasswordStrength
- - Password strength result (score + feedback)PasskeyCredential
- - Passkey credential interfaceChallenge` - WebAuthn challenge interface
-
MIT