docs: fix redirect

This commit is contained in:
Jan De Dobbeleer 2022-01-09 21:54:30 +01:00
parent d107f0af1c
commit 6f0bdab9b2
No known key found for this signature in database
GPG key ID: F6CC273CE5BA9AEE

View file

@ -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 = {