auth with cookies.

This commit is contained in:
2021-06-15 10:38:54 +02:00
parent cf300cb1b7
commit b062e14c9a
6 changed files with 42 additions and 14 deletions
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
import {ApiService} from "../../services/api.service";
@Component({
selector: 'app-top-bar',
@@ -9,9 +11,12 @@ export class TopBarComponent implements OnInit {
sidenav: any;
constructor() { }
constructor(
private api: ApiService
) { }
ngOnInit() {
}
this.api.getUserInfo().subscribe(data=>{console.log(data)});
}
}