Prepare for open source and stopped tracking application-local.yaml

This commit is contained in:
aditya.chandel
2025-03-11 18:17:23 -06:00
parent d923452d81
commit 093592179d
9 changed files with 57 additions and 107 deletions
@@ -2,12 +2,14 @@ import {inject, Injectable, Injector} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable, tap} from 'rxjs';
import {RxStompService} from '../../shared/websocket/rx-stomp.service';
import {API_CONFIG} from '../../config/api-config';
@Injectable({
providedIn: 'root',
})
export class AuthService {
private apiUrl = 'http://localhost:7050/api/v1/auth';
private apiUrl = `${API_CONFIG.BASE_URL}/api/v1/auth`;
private rxStompService?: RxStompService;
private http = inject(HttpClient);
@@ -40,10 +42,6 @@ export class AuthService {
localStorage.setItem('refreshToken', refreshToken);
}
saveToken(token: string): void {
localStorage.setItem('accessToken', token);
}
getToken(): string | null {
return localStorage.getItem('accessToken');
}