Skip to content

Commit e38a45e

Browse files
committed
Fix parameter name
1 parent c8b9781 commit e38a45e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/cadet/auth/providers/openid/nus_entra_id_claim_extractor.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ defmodule Cadet.Auth.Providers.NusEntraIdClaimExtractor do
3030
defp map_key_to_raw(key), do: key
3131

3232
defp get_userinfo(claims, key) do
33-
with true <- check_allowed_domain(data),
33+
with true <- check_allowed_domain(claims),
3434
mapped_key <- map_key_to_raw(key),
35-
value when not is_nil(value) <- Map.get(data, mapped_key) do
35+
value when not is_nil(value) <- Map.get(claims, mapped_key) do
3636
value
3737
else
3838
false -> nil

0 commit comments

Comments
 (0)