redirect
This commit is contained in:
Родитель
5ba85e872d
Коммит
b7f1898e91
|
@ -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}`
|
||||
|
||||
return {
|
||||
statusCode: 301,
|
||||
location: auth_url
|
||||
statusCode: 302,
|
||||
// location: auth_url,
|
||||
// body: JSON.stringify({ message: `${auth_url}` })
|
||||
// // more keys you can return:
|
||||
// headers: { "headerName": "headerValue", ... },
|
||||
headers: { "Location": auth_url }
|
||||
// isBase64Encoded: true,
|
||||
|
||||
// {"meta":{"http_code":200},"response":{"access_token":"DFC11DF925CA3630423928CDCCBBE6583E2183A2"}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче