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 +12 -6
- package/dist/authhero.cjs +87 -79
- package/dist/authhero.d.ts +26 -28
- package/dist/authhero.mjs +3722 -3631
- package/dist/stats.html +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -94,14 +94,20 @@ To clean build artifacts manually:
|
|
|
94
94
|
pnpm clean
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
## Email
|
|
97
|
+
## Email and SMS Service Adapters
|
|
98
98
|
|
|
99
|
-
Authhero supports email
|
|
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
|
-
```
|
|
102
|
-
|
|
103
|
-
|
|
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
|