new shizzle for nizzle
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { JwtHelperService } from '@auth0/angular-jwt';
|
||||
import { Observable } from 'rxjs';
|
||||
import {Injectable} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {JwtHelperService} from '@auth0/angular-jwt';
|
||||
import {Observable} from 'rxjs';
|
||||
import {jwtDecode} from 'jwt-decode';
|
||||
|
||||
@Injectable({
|
||||
@@ -12,10 +12,11 @@ export class AuthService {
|
||||
// baseApi = "https://api.melvanveen.nl/api/auth/login";
|
||||
jwtHelper = new JwtHelperService();
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
login(username: string, password: string): Observable<any> {
|
||||
return this.http.post(this.baseApi, { username, password });
|
||||
return this.http.post(this.baseApi, {username, password});
|
||||
}
|
||||
|
||||
isAuthenticated(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user