using System.Collections;
using System.IdentityModel.Tokens.Jwt;
using Microsoft.IdentityModel.Tokens;
private static readonly Dictionary<string, (string password, string role)> userCredentials = new Dictionary<string, (string, string)>
{ "admin", ("password1", "Admin") },
{ "user2", ("password2", "User") }
public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine("Enter your username:");
string username = Console.ReadLine();
Console.WriteLine("Hello, " + username + "!");
Console.WriteLine("Enter your password:");
string password = Console.ReadLine();
if (userCredentials.TryGetValue(username, out string value)) {
Console.WriteLine(value);
Console.WriteLine("User not found");