-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Title: refactor(auth): move nonce storage from memory to redis
Complexity Score: 150 points
Description
The current AuthService stores login nonces in a local Map. This will fail if we scale to multiple backend instances. We need to move this state to Redis.
Requirements and Context
- Dependency: Use
cache-managerwith redis store. - Logic:
generateChallenge:await cacheManager.set(\nonce:${publicKey}`, nonce, ttl)`.login:await cacheManager.get(\nonce:${publicKey}`)`.
Suggested Execution
- Configure Redis in
AppModule. - Inject
CACHE_MANAGERintoAuthService. - Replace
this.activeNonces.set()with cacheset. - Replace
this.activeNonces.get()with cachegetand delete after use.
Test and Commit
- Commit Message:
refactor(auth): move nonce storage from memory to redis
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program