Open Kano098 opened 3 years ago
Thanks for report @Kano098.
Logging issue to be prioritised: Internal Ref: OKTA-369549
In meantime, you could try using the below workaround using renderEl
(given it suits your needs):
widget.renderEl({
el: widgetRef.current,
}).then((res) => {
if (res.status === 'SUCCESS') {
// user is authenticated
oktaAuth.handleLoginRedirect(res.tokens);
} else if (res.status === 'ACTIVATION_EMAIL_SENT') {
// setActivationEmailSent(true);
// OR
// window.location.assign('/registrationComplete')
}
);
I'm submitting a
Background info
Unable to login after successful registration
Expected behavior
showSignInToGetTokens is only resolved on successful authentication
What went wrong?
showSignInToGetTokens is resolved on successful registration
Steps to reproduce
features.registration: true
Nothing happens because the returning promise of showSignInToGetTokens has been already resolved on successful registration(step 3)
Your environment