|
|
@@ -17,7 +17,7 @@ import * as jwt_decode from 'jwt-decode';
|
|
|
export class AuthService {
|
|
|
|
|
|
//url api
|
|
|
- private apiUrl = `https://api-preprod.foodgame.fr`;
|
|
|
+ //private apiUrl = `https://api-preprod.foodgame.fr`;
|
|
|
|
|
|
|
|
|
private tokenSubject: BehaviorSubject<Token>;
|
|
|
@@ -58,7 +58,7 @@ export class AuthService {
|
|
|
//debugger;
|
|
|
console.log("url ========",this.apiUrl);
|
|
|
|
|
|
- return this.http.post<Token>(`${this.apiUrl}/api/auth/login`, credentials)
|
|
|
+ return this.http.post<Token>(`https://api-preprod.foodgame.fr/api/auth/login`, credentials)
|
|
|
.pipe(map(token => {
|
|
|
// store jwt token in local storage
|
|
|
localStorage.setItem('token', JSON.stringify(token));
|