Wire authentication routes and LiveViews into the router #9

Open
opened 2026-09-26 13:58:30 +00:00 by belvedere · 0 comments
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`.
Sign in to join this conversation.
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#9
No description provided.