This commit is contained in:
Wade Wegner 2020-05-03 16:32:22 -07:00
Родитель 5ba85e872d
Коммит b7f1898e91
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -8,11 +8,11 @@ exports.handler = async (event, context) => {
const auth_url = `https://untappd.com/oauth/authorize/?client_id=${client_id}&client_secret=${client_secret}&response_type=code&redirect_url=${redirect_url}&code=${code}` const auth_url = `https://untappd.com/oauth/authorize/?client_id=${client_id}&client_secret=${client_secret}&response_type=code&redirect_url=${redirect_url}&code=${code}`
return { return {
statusCode: 301, statusCode: 302,
location: auth_url // location: auth_url,
// body: JSON.stringify({ message: `${auth_url}` }) // body: JSON.stringify({ message: `${auth_url}` })
// // more keys you can return: // // more keys you can return:
// headers: { "headerName": "headerValue", ... }, headers: { "Location": auth_url }
// isBase64Encoded: true, // isBase64Encoded: true,
// {"meta":{"http_code":200},"response":{"access_token":"DFC11DF925CA3630423928CDCCBBE6583E2183A2"}} // {"meta":{"http_code":200},"response":{"access_token":"DFC11DF925CA3630423928CDCCBBE6583E2183A2"}}