dartapi_auth 0.0.9
dartapi_auth: ^0.0.9 copied to clipboard
DartAPI Auth is a lightweight and extensible authentication package for Dart backend applications. It provides JWT-based authentication with Auth Middleware.
0.0.9 #
verifyRefreshTokennow automatically revokes the used refresh token when atokenStoreis configured — prevents token-reuse attacks (rotation). Without atokenStorethe behaviour is unchanged (backwards-compatible).
0.0.8 #
- Add concurrent JTI uniqueness test: generate 1000 tokens concurrently and assert all JTIs are distinct
- Add
false_secretsinpubspec.yamlto suppress pub.dev false-positive secret warnings on test RSA keys
0.0.7 #
- Improve README: better structure and clarity
0.0.6 #
- Add RS256 (asymmetric RSA) support via
JwtService.rs256()constructor - Add token revocation via injectable
TokenStoreinterface andInMemoryTokenStore - Add
apiKeyMiddlewarefor API key-based authentication verifyAccessTokenandverifyRefreshTokenare now async (Future<Map?>)- Add
revokeToken(String token)method toJwtService
0.0.5 #
- Fix non-unique JWT token IDs (JTI): replace microsecond timestamp with 128-bit cryptographically random value
0.0.4 #
- update docs
0.0.3 #
- License change
0.0.2 #
- Fix static analysis.
0.0.1 #
- Initial version.