mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Implement user requests autorizations in the client side
This commit is contained in:
parent
0c1cbbfe29
commit
1553e15d82
10 changed files with 122 additions and 33 deletions
|
@ -53,11 +53,7 @@ export class AppComponent {
|
|||
private _authService: AuthService,
|
||||
private _router: Router
|
||||
) {
|
||||
if (localStorage.getItem('access_token')) {
|
||||
this.isLoggedIn = true;
|
||||
} else {
|
||||
this.isLoggedIn = false;
|
||||
}
|
||||
this.isLoggedIn = this._authService.isLoggedIn();
|
||||
|
||||
this._authService.loginChanged$.subscribe(
|
||||
status => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue