Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsc committed Oct 18, 2023
1 parent 832f6d8 commit 7d072f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,14 @@ export class ApiService extends CacheModule {
formBody.set('grant_type', 'refresh_token')
formBody.set('refresh_token', user.refreshToken)
const url = await this.getResourceUrl(req.resource, req.endPoint)

resp = await fetch(url, {
method: 'POST',
body: formBody,
headers: await this.getAuthHeader(true),
})
result = await resp.json()
} else {

resp = await this.execute(req)
const response = req.parse(resp)
result = response[0]
Expand Down

0 comments on commit 7d072f0

Please sign in to comment.