Skip to content

Token time decodes #1

Description

@lawrence-jeff

Minor thing but the code to convert the token time fields is missing the iat attribute and the times are in UTC which isn't as useful when troubleshooting, this updated code fixes both issues for anyone else that might want to fix this

switch (key)
{
case "iat":
case "nbf":
case "exp":
double d = double.Parse(dictionary[key].ToString());
DateTime dt = new DateTime(1970, 1, 1).AddSeconds(d).ToLocalTime();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions