|
@@ -17,7 +17,7 @@ import * as jwt_decode from 'jwt-decode';
|
|
|
export class AuthService {
|
|
export class AuthService {
|
|
|
|
|
|
|
|
//url api
|
|
//url api
|
|
|
- private apiUrl = environment.apiUrl
|
|
|
|
|
|
|
+ private apiUrl = 'https://api-preprod.foodgame.fr'
|
|
|
|
|
|
|
|
|
|
|
|
|
private tokenSubject: BehaviorSubject<Token>;
|
|
private tokenSubject: BehaviorSubject<Token>;
|
|
@@ -97,7 +97,7 @@ export class AuthService {
|
|
|
// iscription get token on login
|
|
// iscription get token on login
|
|
|
signUP(data): Observable<Token> {
|
|
signUP(data): Observable<Token> {
|
|
|
|
|
|
|
|
- return this.http.post<Token>(`${this.apiUrl}/api/auth/signup`, data)
|
|
|
|
|
|
|
+ return this.http.post<Token>(`https://api-preprod.foodgame.fr/api/auth/signup`, data)
|
|
|
.pipe(map(token => {
|
|
.pipe(map(token => {
|
|
|
// store jwt token in local storage
|
|
// store jwt token in local storage
|
|
|
localStorage.setItem('token', JSON.stringify(token));
|
|
localStorage.setItem('token', JSON.stringify(token));
|