dartapi_auth 0.0.11
dartapi_auth: ^0.0.11 copied to clipboard
DEPRECATED: Auth is now part of dartapi_core ^0.1.0. This package re-exports everything from dartapi_core for one-version backwards compatibility. Migrate by replacing `dartapi_auth` with `dartapi_cor [...]
0.0.11 #
Final release — package deprecated.
Auth is now part of dartapi_core ^0.1.1. This release is a backwards-compatible re-export shim.
lib/dartapi_auth.dartre-exportsJwtService,TokenStore,InMemoryTokenStore,authMiddleware,apiKeyMiddleware, andTokenHelpersfromdartapi_core.- All original source files removed;
dartapi_coreis the new canonical home. - Migrate: replace
dartapi_auth: ^0.0.xwithdartapi_core: ^0.1.1and update imports frompackage:dartapi_auth/dartapi_auth.darttopackage:dartapi_core/dartapi_core.dart.
0.0.10 #
- Upgrade
dart_jsonwebtokenfrom^3.1.1to^3.4.1 - Upgrade
lintsfrom^5.0.0to^6.1.0
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.