mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 04:43:04 +12:00
improvement: support atom keys for uid in addition to strings (#556)
This commit is contained in:
parent
d29e546061
commit
7b07b3a433
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ defmodule AshAuthentication.UserIdentity.UpsertIdentityChange do
|
|||
# uid is a convention
|
||||
# sub is supposedly from the spec
|
||||
# id is from what has been seen from Google
|
||||
|> Map.take(["uid", "sub", "id"])
|
||||
|> Map.take(["uid", "sub", "id", :uid, :sub, :id])
|
||||
|> Map.values()
|
||||
|> Enum.reject(&is_nil/1)
|
||||
|> List.first()
|
||||
|
|
Loading…
Reference in a new issue