authhero 4.78.0 → 4.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -94,14 +94,20 @@ To clean build artifacts manually:
94
94
  pnpm clean
95
95
  ```
96
96
 
97
- ## Email Providers
97
+ ## Email and SMS Service Adapters
98
98
 
99
- Authhero supports email providers for sending authentication-related emails. You can use pre-built email provider packages or configure a custom provider. Example:
99
+ Authhero supports email and SMS service adapters for sending authentication-related emails and codes. Provide them as part of your `DataAdapters`:
100
100
 
101
- ```javascript
102
- emailProviders: {
103
- sqs: sendSqsEmail,
104
- },
101
+ ```typescript
102
+ import { EmailServiceAdapter, SmsServiceAdapter } from "@authhero/adapter-interfaces";
103
+
104
+ const dataAdapter = {
105
+ ...createAdapters(db),
106
+ emailService: myEmailAdapter,
107
+ smsService: mySmsAdapter,
108
+ };
109
+
110
+ const { app } = init({ dataAdapter });
105
111
  ```
106
112
 
107
113
  ## Contributing