We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73da4f9 commit 64cf74cCopy full SHA for 64cf74c
src/auth/app_auth_complete/index.js
@@ -3,7 +3,7 @@ const SWA_EMU_HOST = "http://localhost:" + process.env.SWA_EMU_PORT;
3
4
module.exports = async function (context, req) {
5
const { provider } = context.bindingData;
6
- const { post_login_redirect_uri } = req.query;
+ const { post_login_redirect_uri = "" } = req.query;
7
8
context.res = response({
9
context,
@@ -27,7 +27,7 @@ module.exports = async function (context, req) {
27
},
28
],
29
headers: {
30
- location: `${SWA_EMU_HOST}/profile`,
+ location: `${SWA_EMU_HOST}/${post_login_redirect_uri}`,
31
32
});
33
};
0 commit comments