public static IDictionary <string, string> DecodeHeaderToDictionary(this IJwtDecoder decoder, string token) => decoder.DecodeHeader <Dictionary <string, string> >(token);
/// <summary> /// Given a JWT, decodes it and return the header. /// </summary> /// <param name="token">The JWT</param> public string DecodeHeader(string token) { EnsureCanDecode(); return(_decoder.DecodeHeader(token)); }
public static T DecodeHeader <T>(this IJwtDecoder decoder, string token) => decoder.DecodeHeader <T>(new JwtParts(token));