Exemple #1
0
 public static IDictionary <string, string> DecodeHeaderToDictionary(this IJwtDecoder decoder, string token) =>
 decoder.DecodeHeader <Dictionary <string, string> >(token);
Exemple #2
0
        /// <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));
        }
Exemple #3
0
 public static T DecodeHeader <T>(this IJwtDecoder decoder, string token) =>
 decoder.DecodeHeader <T>(new JwtParts(token));