From 6f0bdab9b2cc1e7ea6ec8ba40e2959f4685db808 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 9 Jan 2022 21:54:30 +0100 Subject: [PATCH] docs: fix redirect --- docs/api/auth/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/auth/index.js b/docs/api/auth/index.js index 155e73d9..f24279e3 100644 --- a/docs/api/auth/index.js +++ b/docs/api/auth/index.js @@ -33,14 +33,14 @@ module.exports = async function (context, req) { const url = `${process.env['DOCS_LOCATION']}/docs/auth?segment=${segment}&access_token=${body.access_token}&refresh_token=${body.refresh_token}`; - const res = { + context.res = { status: 302, headers: { - 'Location': url + Location: url }, - body: 'Redirecting...' - }; - context.done(null, res); + body: {} + } + context.done(); } catch (error) { context.log(`Issue processing request:\n${error}`); context.res = {