Auth0 Home Blog Docs

Jwt Security Token


#1

how can i generate token using jwt on C# by using header, payload and api_secret?
on my header i had
{
“alg”: “HS256”,
“typ”: “JWT”
}
on my payload
{
“iss”: “API_KEY”,
“exp”: 1496091964000
}
and i have api_secret
i want to use the same logic like
HMACSHA256(
base64UrlEncode(header) + “.” +
base64UrlEncode(payload),
api_secret)
i am using C#.

thanks