Hi everyone,
I want to achieve a flow similar to the require_authenticated_user
from phx.gen.auth
: a page requires some user info and if it is missing, we redirect to a form so they can be provided.
I think it makes sense to reuse the maybe_return_to
functions defined in user_auth.ex
, but I fail to see where I am supposed to put such general purpose helpers, so I’m turning to you for advice.
Cheers