diff --git a/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md b/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md index d24a96b..f4831e1 100644 --- a/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md +++ b/documentation/tutorials/getting-started-with-ash-authentication-phoenix.md @@ -95,30 +95,47 @@ dependency: // See the Tailwind configuration guide for advanced usage // https://tailwindcss.com/docs/configuration -const plugin = require("tailwindcss/plugin") +const plugin = require("tailwindcss/plugin"); module.exports = { content: [ "./js/**/*.js", "../lib/*_web.ex", "../lib/*_web/**/*.*ex", - "../deps/ash_authentication_phoenix/**/*.ex" // <-- Add this line + "../deps/ash_authentication_phoenix/**/*.ex", // <-- Add this line ], theme: { extend: { colors: { brand: "#FD4F00", - } + }, }, }, plugins: [ require("@tailwindcss/forms"), - plugin(({ addVariant }) => addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])), - plugin(({ addVariant }) => addVariant("phx-click-loading", [".phx-click-loading&", ".phx-click-loading &"])), - plugin(({ addVariant }) => addVariant("phx-submit-loading", [".phx-submit-loading&", ".phx-submit-loading &"])), - plugin(({ addVariant }) => addVariant("phx-change-loading", [".phx-change-loading&", ".phx-change-loading &"])) - ] -} + plugin(({ addVariant }) => + addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"]) + ), + plugin(({ addVariant }) => + addVariant("phx-click-loading", [ + ".phx-click-loading&", + ".phx-click-loading &", + ]) + ), + plugin(({ addVariant }) => + addVariant("phx-submit-loading", [ + ".phx-submit-loading&", + ".phx-submit-loading &", + ]) + ), + plugin(({ addVariant }) => + addVariant("phx-change-loading", [ + ".phx-change-loading&", + ".phx-change-loading &", + ]) + ), + ], +}; ``` ## AshPostgres.Repo Setup @@ -245,7 +262,7 @@ defmodule Example.Accounts.User do identities do identity :unique_email, [:email] end - + # If using policies, add the following bypass: # policies do # bypass AshAuthentication.Checks.AshAuthenticationInteraction do @@ -256,6 +273,7 @@ end ``` **lib/example/accounts/secrets.ex** + ```elixir defmodule Example.Accounts.Secrets do use AshAuthentication.Secret @@ -288,7 +306,7 @@ defmodule Example.Accounts.Token do table "tokens" repo Example.Repo end - + # If using policies, add the following bypass: # policies do # bypass AshAuthentication.Checks.AshAuthenticationInteraction do @@ -471,7 +489,9 @@ To see how the authentication works we replace the default Phoenix `home.html.ee