test: enhance security module with comprehensive token validation and rate limiting tests

- Expanded TokenManager test suite with advanced token encryption and decryption scenarios
- Added detailed rate limiting tests with IP-based tracking and window-based expiration
- Improved test coverage for token validation, tampering detection, and error handling
- Implemented mock configurations for faster test execution
- Enhanced security test scenarios with unique IP addresses and edge case handling
This commit is contained in:
jango-blockchained
2025-02-04 04:09:40 +01:00
parent 1e3bf07547
commit 08e408d68d
7 changed files with 318 additions and 511 deletions

2
.gitignore vendored
View File

@@ -78,4 +78,4 @@ coverage/
.cursor/*
.bun/
.cursor/
.cursorconfig