From 2dde760d313a5a6c70d7a527f610044081fb7fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2EYasoob=20Ullah=20Khalid=20=E2=98=BA?= Date: Thu, 25 Jan 2024 07:50:08 -0800 Subject: [PATCH] improvement: support atom keys for uid in addition to strings (#556) --- lib/ash_authentication/user_identity/upsert_identity_change.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash_authentication/user_identity/upsert_identity_change.ex b/lib/ash_authentication/user_identity/upsert_identity_change.ex index 9ced34e..d7115c9 100644 --- a/lib/ash_authentication/user_identity/upsert_identity_change.ex +++ b/lib/ash_authentication/user_identity/upsert_identity_change.ex @@ -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()