Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public auth(): void {
if (this.user && this.user.catchPhrase) {
const state = forwardParams(this.hub.userCenter.id.state, {
id: this.user.id
});
this.router.navigate(state).catch(console.error);
return;
}
this.authPopUp();
}