Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 0f4c0ed

Browse files
Remove support of accesstoken
1 parent a7e838b commit 0f4c0ed

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Update configuration details at config/index.js
2525
email: '', // Your registered email id
2626
password: '', // Account password
2727
source_stack: '' // Stack api_key
28-
access_token: '' // Stack access_token
2928
content_types_list:'', //optional: For specify the specific contenttypes in array eg: ['product', 'category']
3029
assetsdelete: true //Set Bollean value, Example: true or false
3130
...

app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ login(config).then(function() {
4040
return;
4141
}).catch(function(error) {
4242
log.error('Failed to Delete ' +" "+JSON.stringify(error));
43-
// log.error(error);
4443
return;
4544
})
4645
} else {

config/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
email: '',
99
password: '',
1010
source_stack: '', // Stack API KEY
11-
access_token: '', // Stack ACCESS TOKEN
1211
content_types_list: '', //optional: Content_type_list is the key to specify the specific contenttypes, Example: ['landing', 'header', 'product', 'category']
1312
assetsdelete: true, //Default set :true Example: true or false
1413
};

lib/util/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ exports.validateConfig = function(config) {
1212
if (!config.host || !config.cdn) {
1313
throw new Error('Host/CDN end point is missing from config');
1414
}
15-
if (!config.access_token) {
16-
throw new Error('Kindly provide access_token');
17-
}
1815
};
1916

2017
exports.buildAppConfig = function (config) {
2118
config = _.merge(defaultConfig, config)
2219
config.headers = {
2320
api_key: config.source_stack,
24-
access_token: config.access_token,
2521
'X-User-Agent': 'contentstack-bulk-delete/v' + pkg.version
2622
};
2723
return config;

lib/util/login.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ module.exports = function (config) {
3232
config.authtoken = response.body.user.authtoken;
3333
config.headers = {
3434
api_key: config.source_stack,
35-
access_token: config.access_token,
3635
authtoken: config.authtoken,
3736
'X-User-Agent': 'contentstack-bulk-delete/v' + pkg.version
3837
};

0 commit comments

Comments
 (0)