Send magic links through SMTP email #197
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit#197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add real SMTP email delivery for magic-link authentication so production sites can send login links by email instead of relying on dev-mode log output.
Requirements
AUTH_DEV_MODE=truelocal behavior.AUTH_DEV_MODE=truelogs magic links instead of sending email.Acceptance criteria
AUTH_DEV_MODE=truestill logs the magic link and does not require SMTP..env.exampleand setup documentation explain SMTP configuration and magic-link delivery.Dependencies
Synced from todu comment by @todu on 2026-06-24T04:03:25.560Z
PR review completed for slugkit PR #198.
Result: approved
Acceptance criteria: 6/6 met, 0 missing.
Verification:
npm exec --workspace @slugkit/template-site -- vitest run --config ../../vitest.config.ts src/auth/__tests__/delivery.test.ts src/auth/__tests__/magic-links.test.ts src/routes/__tests__/auth.test.ts(3 files, 23 tests)../scripts/pre-pr.sh(format, lint, typecheck, all workspace tests: 49 files, 369 tests).a322fd6685(build-lint-test, pull_request).Blocking issues: none.
Warnings: none.
PR review comment posted. Merge gate remains waiting for explicit human approval.
Synced from todu comment by @todu on 2026-06-24T04:53:11.929Z
PR review completed for slugkit PR #198 after update
9f2d44d.Result: approved
Acceptance criteria: 6/6 met, 0 missing.
Verification:
9f2d44d.AUTH_DEV_MODE=falsenow forces SMTP delivery even whenNODE_ENVis non-production.NODE_ENV=development.npm exec --workspace @slugkit/template-site -- vitest run --config ../../vitest.config.ts src/auth/__tests__/delivery.test.ts src/auth/__tests__/magic-links.test.ts src/routes/__tests__/auth.test.ts(3 files, 23 tests)../scripts/pre-pr.sh(format, lint, typecheck, all workspace tests: 49 files, 369 tests).9f2d44d(build-lint-test, pull_request).Blocking issues: none.
Warnings: none.
Merge gate: waiting for explicit human merge approval.
Synced from todu comment by @todu on 2026-06-24T04:54:13.183Z
Completed and merged in slugkit PR #198.
Acceptance criteria: 6/6 met.
Evidence:
AUTH_DEV_MODE=truelog-link behavior.AUTH_DEV_MODE=falseso it forces SMTP even under non-productionNODE_ENV.template/site/.env.exampleandtemplate/site/README.md../scripts/pre-pr.sh, and Forgejo Actions #276.mainand localmainfast-forwarded.