JWT Generation & Verification with HMAC SHA-256 Signature in .NET 6
This code is the result of a chat session with AI using deepseek-coder-v2-latest model.
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using Microsoft.IdentityModel.Tokens;
class Program
{
static void Main(string[] args)
{
// Define the security key and algorithm to sign the token
var