# Missing \`Scope\` in \`phx.gen.auth\` docs

**URL:** <https://forum.elixirforum.com/t/missing-scope-in-phx-gen-auth-docs/73007>\
**Category:** Questions\
**Tags:** authentication, phoenix, authorization, learning-elixir, auth\
**Created:** [October 20, 2025, 11:57am UTC](https://forum.elixirforum.com/t/missing-scope-in-phx-gen-auth-docs/73007 "2025-10-20T11:57:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![plumdot](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/plumdot/32/39311_2.png) [@plumdot](https://forum.elixirforum.com/u/plumdot)\
**Post date:** [October 20, 2025, 11:57am UTC](https://forum.elixirforum.com/t/missing-scope-in-phx-gen-auth-docs/73007/1 "2025-10-20T11:57:25Z")

</div>

Hi everyone. I am following along the Phoenix docs for [auth](https://hexdocs.pm/phoenix/mix_phx_gen_auth.html).

When discussing Scopes, we’re supposed to have a `lib/my_app/accounts/scope.ex` file, but I can’t seem to generate one. Is this expected?

> The generated code includes a scope module. For an app named MyApp which had `mix phx.gen.auth Accounts User users` run on it, you will find the following module at `lib/my_app/accounts/scope.ex`:

Any tips would be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![tomkonidas](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tomkonidas/32/22982_2.png) [@tomkonidas](https://forum.elixirforum.com/u/tomkonidas)\
**Post date:** [October 20, 2025, 7:49pm UTC](https://forum.elixirforum.com/t/missing-scope-in-phx-gen-auth-docs/73007/2 "2025-10-20T19:49:17Z")

</div>

What version of phx new are you using? (Run `mix phx.new --version`). Its possible you are on the older version. If the version is `< 1.8` try updating it with `mix archive.install hex phx_new` and then re-run the project init with auth.

---

<div class="post-metadata">

**Author:** ![plumdot](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/plumdot/32/39311_2.png) [@plumdot](https://forum.elixirforum.com/u/plumdot)\
**Post date:** [October 22, 2025, 10:18am UTC](https://forum.elixirforum.com/t/missing-scope-in-phx-gen-auth-docs/73007/3 "2025-10-22T10:18:29Z")

</div>

ah, yup - `v1.7.18`

Thank you @tomkonidas !
