Skip to content

Commit de23e38

Browse files
committed
fix: gmail email vs ids
1 parent dcb13c5 commit de23e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

valentine/lib/valentine_web/controllers/auth_controller.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ defmodule ValentineWeb.AuthController do
1111
def callback(%{assigns: %{ueberauth_auth: %Ueberauth.Auth{} = auth}} = conn, _params) do
1212
conn
1313
|> clear_session()
14-
|> put_session(:user_id, auth.uid)
15-
|> put_session(:live_socket_id, "users_socket:#{auth.uid}")
14+
|> put_session(:user_id, auth.info.email)
15+
|> put_session(:live_socket_id, "users_socket:#{auth.info.email}")
1616
|> redirect(to: ~p"/workspaces")
1717
end
1818
end

0 commit comments

Comments
 (0)