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 James Harton
parent d29e546061
commit 7b07b3a433
Signed by: james
GPG key ID: 90E82DAA13F624F4

View file

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