File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ import { SetAuthToken, ClearAuth } from '@core/store/auth';
9
9
providedIn : 'root' ,
10
10
} )
11
11
export class AuthService {
12
- private readonly API_URL : string = 'VALID_API_URL' ;
13
- private readonly AUTH_TOKEN_KEY : string = '' ;
12
+ private readonly API_URL = 'VALID_API_URL' ;
13
+ private readonly AUTH_TOKEN_KEY = '' ;
14
14
15
15
private readonly http : HttpClient = inject ( HttpClient ) ;
16
16
private readonly store : Store = inject ( Store ) ;
17
17
18
18
//TODO: rewrite/refactor methods according to the API
19
19
async login ( credentials : LoginCredentials ) : Promise < void > {
20
20
try {
21
- const response : AuthResponse = await firstValueFrom (
21
+ const response = await firstValueFrom (
22
22
this . http . post < AuthResponse > ( `${ this . API_URL } /auth/login` , credentials ) ,
23
23
) ;
24
24
You can’t perform that action at this time.
0 commit comments