/// <summary> /// Получает payload из токена /// </summary> /// <returns></returns> public static dynamic GetPayloadFromToken() { //var v1 = JwtProvider.GetInstance(); //var v2 = ReadJwtTokenFromCookie(); //var v3 = v1.DecodePayload(v2.Value); return(!IsExistTokenInCookie() ? null : JwtProvider.GetInstance().DecodePayload(ReadJwtTokenFromCookie().Value)); }
public static void Create(string tokenUri) { _tokenUri = tokenUri; _provider = new JwtProvider(); }