Issue with post activation redirects

Greetings,
I’m currently having a situation with a project I’m dealing with.

I have a Nextjs app, that uses a custom login (signInWithCredentials) and I creating my users on a RestAPI using a direct call to Okta API on /users?activate=true. (without credentials)

Now, when I received the activation email, the default redirection is to Okta Default User Dashboard.

Is any way to change that redirection back to my website and handle the password a phone number enrollment on my app instead of okta’s default???

That sort of redirection would only occur by default if the user is completing self-service registration on your application directly, not you creating them via the Users endpoint.

You could however look to modify the activation email template, as described int he following article: How to Redirect Users to a Different Landing Page After User Activation | Okta Help Center

Note that you cannot modify the email templates within a Developer Free Org, as that type of customization is restricted to paid orgs.

I done that, but I not sure how to follow up after that step since I only had an activation token and is not allow to login when used on a SPA app. (also fails when sent to backend aka service app and fails with expire message when use on Web type app)

Also I changed my flow to allow my user to set a password before triggering a creation, then I activate them using /lifecycle endpoint and modify the mail to send back to my app.

But my policy is set to Password + another factor, signInWithRedirect returns a Sucess state regardless of the need for a MFA verification.