Skip to content

Commit

Permalink
add birthday to a info struct (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtrod authored and doomspork committed Oct 23, 2019
1 parent 05e67b7 commit c49afdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ueberauth/auth/info.ex
Expand Up @@ -14,6 +14,7 @@ defmodule Ueberauth.Auth.Info do
description: binary | nil,
image: binary | nil,
phone: binary | nil,
birthday: binary | nil,
urls: map
}

Expand All @@ -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: %{}

Expand Down
1 change: 1 addition & 0 deletions test/support/mixins.ex
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions test/ueberauth_test.exs
Expand Up @@ -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

Expand Down

0 comments on commit c49afdc

Please sign in to comment.