Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/ueberauth_example/user_from_auth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ defmodule UeberauthExample.UserFromAuth do
{:ok, basic_info(auth)}
end

# github does it this way
defp avatar_from_auth(%{info: %{urls: %{avatar_url: image}}}), do: image

# facebook does it this way
defp avatar_from_auth(%{info: %{image: image}}), do: image

# default case if nothing matches
Expand Down
Loading