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