Fully working with the rule no explicit any
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user