docs: add architecture documentation and slides
This commit is contained in:
18
docs/adr/004-sms-provider-strategy.md
Normal file
18
docs/adr/004-sms-provider-strategy.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# ADR 004: Select SMS Providers With Strategy
|
||||
|
||||
## Status
|
||||
|
||||
Accepted.
|
||||
|
||||
## Context
|
||||
|
||||
The project supports Kavenegar, SMS.ir, and local debug delivery.
|
||||
|
||||
## Decision
|
||||
|
||||
Expose a stable `SmsClient` port and choose the concrete provider through a small factory based on `SMS_PROVIDER`.
|
||||
|
||||
## Consequences
|
||||
|
||||
Adding a new SMS provider does not change the auth use case or worker flow. Tests can mock providers without network access.
|
||||
|
||||
Reference in New Issue
Block a user