public override async Task StoreAsync(string key, RefreshToken value)
        {
            var efToken = new Entities.Token
            {
                Key       = key,
                SubjectId = value.SubjectId,
                ClientId  = value.ClientId,
                JsonCode  = ConvertToJson(value),
                Expiry    = DateTimeOffset.UtcNow.AddSeconds(value.LifeTime),
                TokenType = tokenType
            };

            context.Tokens.Add(efToken);
            await context.SaveChangesAsync();
        }
        public override async Task StoreAsync(string key, AuthorizationCode code)
        {
            var efCode = new Entities.Token
            {
                Key       = key,
                SubjectId = code.SubjectId,
                ClientId  = code.ClientId,
                JsonCode  = ConvertToJson(code),
                Expiry    = DateTimeOffset.UtcNow.AddSeconds(code.Client.AuthorizationCodeLifetime),
                TokenType = this.tokenType
            };

            context.Tokens.Add(efCode);
            await context.SaveChangesAsync();
        }