Skip to content
Prev Previous commit
Next Next commit
removed redundant modifiers in auth service
  • Loading branch information
rnastyuk committed Mar 4, 2025
commit d0f43baeaa5e94c7076ad114f6b45fedfe56a945
6 changes: 3 additions & 3 deletions src/app/features/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import { SetAuthToken, ClearAuth } from '@core/store/auth';
providedIn: 'root',
})
export class AuthService {
private readonly API_URL: string = 'VALID_API_URL';
private readonly AUTH_TOKEN_KEY: string = '';
private readonly API_URL = 'VALID_API_URL';
private readonly AUTH_TOKEN_KEY = '';

private readonly http: HttpClient = inject(HttpClient);
private readonly store: Store = inject(Store);

//TODO: rewrite/refactor methods according to the API
async login(credentials: LoginCredentials): Promise<void> {
try {
const response: AuthResponse = await firstValueFrom(
const response = await firstValueFrom(
this.http.post<AuthResponse>(`${this.API_URL}/auth/login`, credentials),
);

Expand Down