Login per email token. With logout of previous account if already logged in.

This commit is contained in:
2026-02-18 15:01:31 +01:00
parent 02b473bbf1
commit 55c128e25e
6 changed files with 71 additions and 4 deletions

View File

@ -15,9 +15,6 @@ defmodule BeetRoundServerWeb.UserJSON do
%{data: %{email: user.email, id: user.id, token: encoded_token}}
end
@doc """
Renders a single user.
"""
def show(%{user: user}) do
%{data: data(user)}
end