improvement: support atom keys for uid in addition to strings (#556)

This commit is contained in:
M.Yasoob Ullah Khalid ☺ 2024-01-25 07:50:08 -08:00 committed by GitHub
parent 22aa74ae2c
commit 2dde760d31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()