const { response } = require('./util/lambda')

function handler(event, context, callback) {

    const { body } = event;
    const {
        SPOTIFY_USER_ACCESS_TOKEN,
        SPOTIFY_LOCAL_URL,
        SLACK_TOKEN
    } = process.env;

    let message = 'no token...';
    if (SPOTIFY_USER_ACCESS_TOKEN) {
        message = 'It works!'
    }
    callback(null, response({
        message,
        body
    }));
}

module.exports = {
    handler
};

const { response } = require('./util/lambda')

function handler(event, context, callback) {

    const { body } = event;
    const { SPOTIFY_CLIENT_ID, SPOTIFY_SECRET } = process.env;

    callback(null, response({
        message: 'It works!',
        body: body
    }));
}

module.exports = {
    handler
};

Revert "verifying token is present. deploy test"
Revert "verifying token is present. deploy test"

This reverts commit 58bf3a514f5c3ea77062ebee8b4fc16ed10f81f8.
