An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(relay): extract password, rate-limit, and account-query modules #49

open opened by malpercio.dev targeting main from refactor/extract-auth-and-db-modules

Summary

  • Adds auth/password.rs — hash_password + verify_password (Functional Core)
  • Adds auth/rate_limit.rs — sliding-window rate limiter + constants (Functional Core)
  • Adds db/accounts.rs — AccountRow + resolve_identifier DB queries (Imperative Shell)
  • Removes duplicate local definitions from create_session.rs and create_did.rs
  • Fixes the route-imports-route smell: oauth_authorize.rs now imports from auth:: and db:: directly

Test plan

  • cargo clippy --package relay -- -D warnings passes clean
  • cargo test --package relay — 368 tests, 0 failures
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:web:malpercio.dev/sh.tangled.repo.pull/3mhr3bvzfxv22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
malpercio.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments