Wire authentication routes and LiveViews into the router #61

Closed
opened 2026-09-26 13:58:55 +00:00 by belvedere · 1 comment
Collaborator

Objective: Browser-facing sign-in, registration and sign-out.

Files:

  • Modify: lib/first_thousand_words_web/router.ex
  • Create: lib/first_thousand_words_web/live/auth/ views as generated by
    mix ash_authentication_phoenix.install

Steps:

  1. Add the auth routes via the AshAuthentication.Phoenix router helpers.
  2. Keep them outside the authenticated live_session.
  3. Follow AGENTS.md: the :browser scope is already aliased to FirstThousandWordsWeb, so
    route modules need no extra alias prefix.

Verify: mix phx.server, then visit the sign-in page and register through the browser.

Refs: AGENTS.md — Phoenix guidelines; Authenticated Routes guidance re current_scope.

**Objective:** Browser-facing sign-in, registration and sign-out. **Files:** - Modify: `lib/first_thousand_words_web/router.ex` - Create: `lib/first_thousand_words_web/live/auth/` views as generated by `mix ash_authentication_phoenix.install` **Steps:** 1. Add the auth routes via the AshAuthentication.Phoenix router helpers. 2. Keep them **outside** the authenticated `live_session`. 3. Follow AGENTS.md: the `:browser` scope is already aliased to `FirstThousandWordsWeb`, so route modules need no extra alias prefix. **Verify:** `mix phx.server`, then visit the sign-in page and register through the browser. **Refs:** AGENTS.md — Phoenix guidelines; Authenticated Routes guidance re `current_scope`.
Author
Collaborator

Duplicate of #9 — created by a re-run whose pagination helper only saw the first page of issues. Closing to keep the backlog clean. Repo owner can delete this outright.

Duplicate of #9 — created by a re-run whose pagination helper only saw the first page of issues. Closing to keep the backlog clean. Repo owner can delete this outright.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nickkeers/first-thousand-words#61
No description provided.