update can redirect back to what they came from after login
This commit is contained in:
parent
1f4f5b6ad2
commit
a12b30998d
3 changed files with 57 additions and 14 deletions
|
|
@ -19,7 +19,12 @@ export class UserService {
|
|||
.asObservable()
|
||||
.pipe(distinctUntilChanged());
|
||||
|
||||
public isAuthenticated = this.currentUser.pipe(map((user) => !!user));
|
||||
public isAuthenticated = this.currentUser.pipe(
|
||||
map((user) => !!user),
|
||||
tap((isAuth) => {
|
||||
console.log('Change auth', isAuth);
|
||||
})
|
||||
);
|
||||
|
||||
constructor(
|
||||
private readonly http: HttpClient,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue