diff --git a/src/config.js b/src/config.js index bced6832..3df10f4a 100644 --- a/src/config.js +++ b/src/config.js @@ -31,8 +31,6 @@ export const homeUrl = protocol + host export const index = path.join(__dirname, indexFile) export const sitemapCacheTime = 600000// 600 sec - cache purge period -export const instagramToken = privateData['instagramToken'] - export const viewMain = path.join(__dirname, 'views/main.hbs') export const view404 = path.join(__dirname, 'views/404.hbs') diff --git a/src/core/service.js b/src/core/service.js deleted file mode 100644 index 64795dad..00000000 --- a/src/core/service.js +++ /dev/null @@ -1,8 +0,0 @@ -import {instagramToken} from '../config'; - -export const services = { - instagram: instagramToken -}; - -export const checkAuth = (name, token) => name in services && services[name] === token; -export const authChecker = store => (name, token) => name in store && store[name] === token; \ No newline at end of file