diff --git a/lib/ueberauth/auth/info.ex b/lib/ueberauth/auth/info.ex index 5f6ddd9..9d9368b 100644 --- a/lib/ueberauth/auth/info.ex +++ b/lib/ueberauth/auth/info.ex @@ -14,6 +14,7 @@ defmodule Ueberauth.Auth.Info do description: binary | nil, image: binary | nil, phone: binary | nil, + birthday: binary | nil, urls: map } @@ -33,6 +34,8 @@ defmodule Ueberauth.Auth.Info do image: nil, # The telephone number of the authenticating user (no formatting is enforced). phone: nil, + # The birthday of an authenticated user + birthday: nil, # A map containing key value pairs of an identifier for the website and its URL. For instance, an entry could be "Blog" => "http://intridea.com/blog" urls: %{} diff --git a/test/support/mixins.ex b/test/support/mixins.ex index 05f57a0..e2e6dad 100644 --- a/test/support/mixins.ex +++ b/test/support/mixins.ex @@ -19,6 +19,7 @@ defmodule Support.Mixins do location: "Some location", description: "Some description", phone: "555-555-5555", + birthday: "2000-01-01", urls: %{ "Blog" => "http://foo.com", "Thing" => "http://thing.com" diff --git a/test/ueberauth_test.exs b/test/ueberauth_test.exs index e5b3efe..d5b8475 100644 --- a/test/ueberauth_test.exs +++ b/test/ueberauth_test.exs @@ -197,6 +197,7 @@ defmodule UeberauthTest do assert info.location == "Some location" assert info.description == "Some description" assert info.phone == "555-555-5555" + assert info.birthday == "2000-01-01" assert info.urls == %{"Blog" => "http://foo.com", "Thing" => "http://thing.com"} end