@current_user.name is nil for Google Authentication
bezborodow opened this issue · comments
Using the example app, I tried authenticating with Google, the @current_user.id
and @current_user.avatar
is set but @current_user.avatar
is nil. It is the same in my own application as well.
I managed to fix this by adding default_scope: "email profile"
in config/config.exs
as follows:
# Überauth
config :ueberauth, Ueberauth,
providers: [
google: {Ueberauth.Strategy.Google, [
default_scope: "email profile",
...............
]}
]
@bezborodow would you be willing to open a PR to update this project's configuration and perhaps add a note to the README here and ueberauth_google
if it's not already mentioned?