test(auth): expand auth flow tests with comprehensive edge cases#171
Merged
GoSTEAN merged 4 commits intoNetwalls:mainfrom Feb 23, 2026
Merged
test(auth): expand auth flow tests with comprehensive edge cases#171GoSTEAN merged 4 commits intoNetwalls:mainfrom
GoSTEAN merged 4 commits intoNetwalls:mainfrom
Conversation
- Add nonce generation and expiry tests (5 tests) - Unique nonce generation - Timestamp and expiry validation - Expired nonce rejection - Auto-delete after TTL - Prevent nonce reuse across public keys - Add valid/invalid signature login tests (4 tests) - Accept valid signature from correct keypair - Reject signature from wrong keypair - Reject malformed signature - Reject signature for tampered message - Add token refresh and rotation tests (5 tests) - Generate new tokens on refresh - Rotate session and invalidate old token - Reject expired refresh token - Reject refresh token used as access token - Maintain user session count during rotation - Add logout and session cleanup tests (5 tests) - Delete single session on logout - Delete all user sessions on logout all - Blacklist token on logout - Remove blacklisted token after TTL - Clean up user session set on delete all - Add concurrent session limits tests (6 tests) - Track multiple concurrent sessions - Retrieve all active sessions for user - Enforce session limit by deleting oldest - Handle concurrent session creation race condition - Clean up stale session references Total: 33 tests passing (25 new tests added) Closes Netwalls#133 chore: remove documentation markdown files - Keep README.md and WAVE1_SUMMARY.md - Remove implementation docs, PR descriptions, and temporary notes
Contributor
Author
|
@GoSTEAN but i did not touch contract, why is it failing?? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add nonce generation and expiry tests (5 tests)
Add valid/invalid signature login tests (4 tests)
Add token refresh and rotation tests (5 tests)
Add logout and session cleanup tests (5 tests)
Add concurrent session limits tests (6 tests)
Total: 33 tests passing (25 new tests added)
Closes #133