|
1 | 1 | # @palmares/auth |
2 | 2 |
|
3 | | -## [UNRELEASED] |
| 3 | +All notable changes to this package will be documented in this file. |
| 4 | +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). |
| 5 | + |
| 6 | +## [Unreleased] |
| 7 | + |
| 8 | +### Added |
| 9 | +- Core authentication domain with zero dependencies |
| 10 | +- Flexible adapter system for implementing different auth strategies |
| 11 | +- Type-safe authentication flows with comprehensive TypeScript support |
| 12 | +- Base `AuthAdapter` class with factory pattern for creating custom adapters |
| 13 | +- Core authentication interface with: |
| 14 | + - Generic type system for credentials, results, and identifiers |
| 15 | + - Optional instance and configuration types |
| 16 | + - Minimal required methods (`authenticate`, `getIdentifier`) |
| 17 | +- Optional event system with standard auth events: |
| 18 | + - `auth:attempt`, `auth:success`, `auth:failure` |
| 19 | + - `auth:logout`, `auth:refresh`, `auth:revoke` |
| 20 | + - `auth:validate`, `auth:error` |
| 21 | +- Optional hook system with: |
| 22 | + - Pre/post operation hooks |
| 23 | + - Priority-based execution |
| 24 | + - Typed context data |
| 25 | + - Async support |
| 26 | +- Authentication domain with core methods: |
| 27 | + - `authenticate` - Handle user authentication |
| 28 | + - `verify` - Verify authentication credentials |
| 29 | + - `invalidate` - Invalidate authentication credentials |
| 30 | +- Error handling system with: |
| 31 | + - Base `AuthException` class |
| 32 | + - `AuthAdapterException` for adapter-specific errors |
| 33 | + - `NotImplementedAuthAdapterException` for unimplemented methods |
0 commit comments