I am consuming an API through a post method and need to send in the Authorization header. I'm doing the following:
public post(resource, body, authorization = false): Observable<any> {
const headers = new HttpHeaders();
headers....
I'm working on an application with Ionic 3 + Angular 5 and I have to get an Ionic storage value as follows:
this.userStorageService.get('expiresIn')
.then((data) => this.tokenExpirationTimeFromApi = data);
console.log(this.tok...
I have a method in an Ionic 3 (local) application consuming features of an external API, using the following method:
post(resource, body): Observable<any> {
return this.http
.post<Observable<any>>('${this.apiUrl}$...