I still cannot get this bookmark thing working to redirect the new user back to my application home page once the password creation etc is complete.
A new user signs up with the following info from the angular front end. firstName, lastName, email, login and mobilePhone.
This data is received at my nodejs backend and below is what I am using for creating the new user with okta nodejs sdk.
const okta = require('@okta/okta-sdk-nodejs');
const client = new okta.Client({
orgUrl: 'https://dev-179941.oktapreview.com/',
token: '{{mytoken}}' // Obtained from Developer Dashboard
});
app.post('/usersignupokta', function(req,res){
var newUser = {
profile: {
firstName: req.body.profile.firstName,
lastName: req.body.profile.lastName,
email: req.body.profile.email,
login: req.body.profile.login,
mobilePhone: req.body.profile.mobilePhone,
}
};
client.createUser(newUser).then(user => {
console.log('Created user', user);
}).catch((err) => console.error(err));
});
At this point I can see in okta developer console and in my node app console that the new user has been created and has received the activation email. The activation link in the email is something like this.
I am using the User Activation email template where the code for the activation link is as below.
<a href="${activationLink}" id="reset-password-link">${activationLink}</a>
Once the user clicks on this link he is redirected to a screen where he sets his new password, security question and security image and clicks on Create My Account button. At this point I was hoping that the user would be redirected to my application home page http://localhost:3000/home but he gets redirected to https://dev-179941.oktapreview.com/app/UserHome where he sees the screen below.
Is there step by step guidance what needs to be done to get the user back to my application homepage and not get stuck at this other page?
Thanks.