Fully working with the rule no explicit any

This commit is contained in:
2020-11-25 09:27:42 +05:30
parent 84535ca9bb
commit b583b90756
27 changed files with 223 additions and 155 deletions

View File

@ -89,7 +89,7 @@ export class AuthService {
formData.append('otp', otp);
formData.append('grant_type', 'password');
return this.http
.post<any>(loginUrl, formData)
.post<{ access_token: string; token_type: string }>(loginUrl, formData)
.pipe(map((u) => u.access_token))
.pipe(map((u) => AuthService.parseJwt(u)))
.pipe(
@ -118,7 +118,7 @@ export class AuthService {
refreshToken() {
return this.http
.post<any>(refreshUrl, {})
.post<{ access_token: string; token_type: string }>(refreshUrl, {})
.pipe(map((u) => u.access_token))
.pipe(map((u) => AuthService.parseJwt(u)))
.pipe(