working test deploy config
This commit is contained in:
1 parent
c4cc268ea8
commit
f133d11123
18 files changed
+268
-19
No files matched your search
@@ -2,7 +2,7 @@ import { Injectable, inject } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { BehaviorSubject, firstValueFrom, map, Observable, tap } from 'rxjs';
|
||||
|
||||
import { environment } from '../../environments/environment';
|
||||
import { getAppConfig } from './app-config.service';
|
||||
import { AppUser, AuthTokenResponse } from '../interfaces/auth';
|
||||
|
||||
const TOKEN_KEY = 'kmtn_access_token';
|
||||
@@ -12,7 +12,7 @@ const TOKEN_KEY = 'kmtn_access_token';
|
||||
})
|
||||
export class AuthService {
|
||||
private http = inject(HttpClient);
|
||||
private baseUrl = `${environment.apiBaseUrl}/api/auth`;
|
||||
private baseUrl = `${getAppConfig().apiBaseUrl}/api/auth`;
|
||||
|
||||
private authStateSubject = new BehaviorSubject<AppUser | null>(null);
|
||||
|
||||
|
||||
Reference in new issue
Block a user