implement google oauth

This commit is contained in:
2022-03-01 23:12:29 -05:00
parent 45bd5ba81a
commit ebbe1c2fa0
8 changed files with 54 additions and 11 deletions

View File

@@ -27,8 +27,6 @@ defmodule EntenduWeb.AuthController do
with %{id: link_id} <- link,
{:ok, user} <- UserFromAuth.find_or_create(auth) do
# TODO: send over encrypted data that the frontend can decrypt
conn
|> put_session(:current_user, user)
|> configure_session(renew: true)

View File

@@ -7,6 +7,7 @@ defmodule EntenduWeb.PageController do
def index(conn, _params) do
conn
|> clear_session()
|> render("index.html")
end