KeyCloakClient with .NET Core 6

I’m new to KeyCloak, using a Docker server.
I’m searching to create a client with .NET Core 6 (could be also 7) .
My console app should verify if the user has already a session (already authenticated), otherwise create the auth and give the token.
I think that i should use the NuGet packages of Oleksii Nikiforov, but exploring the GitHub code of these packages i don’t find how to write this code.
Currently i can create a KeycloakClient

        var keycloakClient = new KeycloakClient(
           keycloakBaseUrl,
           "admin",
           "admin",
           new KeycloakOptions(prefix: "auth"
           )
        );

but exploring the keycloakClient methods i don’ t understand how to get the session info.