Extract slug-auth npm package #244
No reviewers
Labels
No labels
activitypub
admin
api
architecture
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
content
database
deployment
design
dev-env
diagnostics
docs
documentation
email
enhancement
feature
federation
feed
health
homepage
implementation
integration
logging
mastodon
media
navigation
npm-packages
openapi
opengraph
packages
passkeys
preview
priority:high
priority:low
priority:medium
production
proof
proxy
public-routes
public-ui
release
safety
slug-api
slug-auth
slug-core
slug-federation
slug-media
slug-template
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
webauthn
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-46a00d5d-slug-auth-package"
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?
Summary
@evcraddock/slug-authworkspace package with token/API-key helpers, magic-link delivery helpers, passkey helpers, auth logging helpers, and site-owned storage interfaces.@evcraddock/slug-auth@0.1.0.@evcraddock/slug-authto the Forgejo npm package release workflow choices.Verification
npm run build --workspacesnpm run typecheck --workspacesnpm test --workspace @evcraddock/slug-authnpm test --workspace @slugkit/template-site -- src/auth src/routes/__tests__/auth.test.ts src/routes/__tests__/admin-passkeys.test.ts src/api/__tests__/auth-check.test.ts src/api/__tests__/bearer-auth.test.tsnpm test --workspace @evcraddock/slug-cli -- commands.test.tsnpm run package:pack:dry-run -- --workspace @evcraddock/slug-authnpm run package:release -- --workspace @evcraddock/slug-auth --dry-run./scripts/pre-pr.shTask: #task-46a00d5d
Review summary
PR #244 extracts reusable auth primitives into
@evcraddock/slug-authwhile preserving generated-site ownership of storage, admin policy, routes, sessions, and UI wrappers. The package exposes explicit repository interfaces plus token/API-key, magic-link, passkey, and logging helpers, and the template consumes those exports through the local workspace link.Acceptance criteria
@evcraddock/slug-authexists as a workspace package —packages/slug-authincludes package metadata, TS configs, README, public exports, and tests.@evcraddock/slug-auththrough the local workspace link during monorepo development —template/site/package.jsondeclares@evcraddock/slug-auth: 0.1.0, which npm links locally in the workspace.@evcraddock/slug-auth@0.1.0.template/site/src/auth/*for DB access, admin policy, delivery behavior, sessions, and passkey route integration../scripts/pre-pr.shpasses — verified locally and Forgejo CI run #342 passed.Blocking issues
None for merging this implementation PR.
Warnings
@evcraddock/slug-authand verify install/import before closing the task.Verdict
Approved. Stop at the human merge gate.