i have implemented angualr sigin in widget using this link https://developer.okta.com/code/angular/okta_angular_sign-in_widget/.
After success from responce its is redirecting to “https://dev-6460791.okta.com/”
ngOnInit() {
this.widget.renderEl({
el: ‘#okta-signin-container’},
(res) => {
if (res.status === ‘SUCCESS’) {
// this.router.navigate(['/home']);
this.signIn.signInWithRedirect('/', { sessionToken: res.session.token });
// Hide the widget
// this.signIn.loginRedirect('/', { sessionToken: res.tokens.idToken.value });
// this.signIn.signInWithRedirect({ sessionToken: res.tokens.idToken.value });
this.widget.hide();
}
},
(err) => {
throw err;
}
),(this);
}
can anybody please help
thanks