fixing auth login flow and making custom login flow

This commit is contained in:
2026-04-03 19:54:18 -04:00
parent 874fec835d
commit bd0f5d52c2
3 changed files with 9 additions and 11 deletions

View File

@@ -1186,12 +1186,12 @@ function App() {
{email ? ( {email ? (
<> <>
<span className="mx-version" style={{ color: "var(--mx-fg2)" }}>{email}</span> <span className="mx-version" style={{ color: "var(--mx-fg2)" }}>{email}</span>
<a className="mx-auth-link" href="/auth/sign-out">Sign out</a> <a className="mx-auth-link" href="/sign-out">Sign out</a>
</> </>
) : ( ) : (
<> <>
<a className="mx-auth-link" href="/register">Create account</a> <a className="mx-auth-link" href="/register">Create account</a>
<a className="mx-auth-link" href="/auth/sign-in">Sign in</a> <a className="mx-auth-link" href="/sign-in">Sign in</a>
</> </>
)} )}
<span className="mx-version">v0.1.0</span> <span className="mx-version">v0.1.0</span>

View File

@@ -9,12 +9,10 @@ defmodule MixerWeb.AuthOverrides do
# For a complete reference, see https://hexdocs.pm/ash_authentication_phoenix/ui-overrides.html # For a complete reference, see https://hexdocs.pm/ash_authentication_phoenix/ui-overrides.html
# override AshAuthentication.Phoenix.Components.Banner do override AshAuthentication.Phoenix.Components.Banner do
# set :image_url, "https://media.giphy.com/media/g7GKcSzwQfugw/giphy.gif" set :image_url, nil
# set :text_class, "bg-red-500" set :dark_image_url, nil
# end set :text, "⬡ Mixer"
set :text_class, "text-3xl font-bold tracking-tight"
# override AshAuthentication.Phoenix.Components.SignIn do end
# set :show_banner, false
# end
end end

View File

@@ -5,7 +5,7 @@
<p class="text-base-content/60 text-lg mb-10">A social feed built with Ash &amp; Phoenix.</p> <p class="text-base-content/60 text-lg mb-10">A social feed built with Ash &amp; Phoenix.</p>
<div class="flex flex-col sm:flex-row gap-3 justify-center"> <div class="flex flex-col sm:flex-row gap-3 justify-center">
<a href="/register" class="btn btn-primary btn-lg rounded-full px-8">Create account</a> <a href="/register" class="btn btn-primary btn-lg rounded-full px-8">Create account</a>
<a href="/auth/sign-in" class="btn btn-ghost btn-lg rounded-full px-8">Sign in</a> <a href="/sign-in" class="btn btn-ghost btn-lg rounded-full px-8">Sign in</a>
</div> </div>
<p class="mt-8 text-sm text-base-content/40"> <p class="mt-8 text-sm text-base-content/40">
Already have an account? Already have an account?