Security Features
Svelte Guardian provides multiple security features to protect your application and users from common threats.
Password Security
Password Policies
Configure strong password requirements:
You can specify a specific number of characters for each requirement:
Account Lockout
Protect against brute force attacks:
Multi-factor Authentication
TOTP (Time-based One-Time Password)
Enable authenticator app MFA:
Backup Codes
When enabled, backup codes let users regain access if they lose their authenticator device.
Session Security
HTTP-only Cookies
Protect against JavaScript attacks by using HTTP-only cookies:
Session Fixation Protection
Generate new sessions on authentication to prevent session fixation attacks:
Security Headers
Configure robust security headers based on your security needs:
The strict
level applies the following headers:
- Strict-Transport-Security
- X-Frame-Options: DENY
- X-Content-Type-Options: nosniff
- Content-Security-Policy with restrictive defaults
Rate Limiting
Protection against excessive requests:
Cross-Site Request Forgery (CSRF) Protection
CSRF tokens are automatically generated and validated for all POST, PUT, PATCH, and DELETE requests.
Route Protection
Define access rules for different routes:
Email Security
Email Verification
Require email verification before allowing full access:
Secure Password Reset
Configure secure password reset flows:
Logging and Auditing
Enable security event logging: