@main12/auth-login 0.2.0 → 0.2.1
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 +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -358,6 +358,20 @@ Visit `http://localhost:3000/login` — all 5 auth pages wired with SQLite.
|
|
|
358
358
|
|
|
359
359
|
---
|
|
360
360
|
|
|
361
|
+
## Usage with @main12/brevo-adapter
|
|
362
|
+
|
|
363
|
+
```ts
|
|
364
|
+
import { authLoginPlugin } from '@main12/auth-login'
|
|
365
|
+
import { brevoAdapter } from '@main12/brevo-adapter'
|
|
366
|
+
|
|
367
|
+
export default buildConfig({
|
|
368
|
+
email: brevoAdapter(),
|
|
369
|
+
plugins: [authLoginPlugin({ projectName: 'My App' })],
|
|
370
|
+
})
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
The auth-login plugin uses `payload.sendEmail()` internally — which routes through Brevo automatically.
|
|
374
|
+
|
|
361
375
|
## Requirements
|
|
362
376
|
|
|
363
377
|
| Dependency | Version | Required |
|
package/package.json
CHANGED