Skip to content

Commit 17be8d2

Browse files
committed
feat: add ability to save retUrl
1 parent 1b20953 commit 17be8d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web-assets/auth0/dev-tenant/rules/onboardingChecklist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function (user, context, callback) {
125125
}
126126
}
127127
}
128-
128+
129129
const profileCompletedData = onboardingChecklistTrait.data.length > 0 ? onboardingChecklistTrait.data[0].profile_completed : null;
130130

131131
if (profileCompletedData) {

web-assets/js/setupAuth0WithRedirect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const authSetup = function () {
233233

234234
const redirectToOnboardingWizard = function () {
235235
logger("redirect to onboarding wizard");
236-
window.location = onboardingWizardUrl;
236+
window.location = onboardingWizardUrl
237237
}
238238

239239
const redirectToApp = function () {
@@ -319,7 +319,7 @@ const authSetup = function () {
319319
logger('Need to persist appUrl', returnAppUrl)
320320
setCookie('returnAfterOnboard', returnAppUrl) // TODO: use localStorage instead?
321321
}
322-
redirectToOnboardingWizard();
322+
redirectToOnboardingWizard(returnAppUrl);
323323
}
324324
else {
325325
// session still active, but app calling login

0 commit comments

Comments
 (0)