···4242 defp authorization_server(resource, pds_endpoint) do
4343 with :ok <- verify_resource(resource, pds_endpoint) do
4444 case Map.get(resource, "authorization_servers") do
4545- [issuer | _] when is_binary(issuer) -> {:ok, issuer}
4545+ # There has to be exactly one issuer according to the spec.
4646+ [issuer] when is_binary(issuer) -> {:ok, issuer}
4647 _ -> {:error, :no_authorization_server}
4748 end
4849 end
+1-1
lib/annot_at/atproto/oauth/login.ex
···185185186186 {:error, reason} ->
187187 Logger.warning("failed to fetch profile for #{handle}: #{inspect(reason)}")
188188- %{display_name: nil, avatar: nil}
188188+ %{display_name: nil, avatar_url: nil}
189189 end
190190 end
191191end