i created an app with a simple authentication
login(credentials) {
this.callLogin(credentials)
.pipe(
concat(
this.principal().pipe(
map((user) => {
this.user = user;
})
)
)
).subscribe(() => {
this.onLoginStateChanged.next(LoginState.LOGGED_IN);
this.router.navigateByUrl("/");
})
}
this is my auth.service.ts that is called by login function.
How can I save the information contained in "user" so that I can reuse them in my app?
I need to use ngrx/store o something else?