mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
refactor: update to Angular 13
This commit is contained in:
@@ -64,6 +64,7 @@ export class AuthHelperService {
|
||||
key as keyof SCUserConfiguration
|
||||
] as string,
|
||||
json: userInfo,
|
||||
preventEval: true,
|
||||
})[0];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import {Requestor} from '@openid/appauth';
|
||||
import {Http, HttpHeaders, HttpResponse} from '@capacitor-community/http';
|
||||
import {XhrSettings} from 'ionic-appauth/lib/cordova';
|
||||
import qs from 'qs';
|
||||
|
||||
// REQUIRES CAPACITOR PLUGIN
|
||||
// @capacitor-community/http
|
||||
@@ -33,7 +32,7 @@ export class CapacitorRequestor extends Requestor {
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
private async post<T>(url: string, data: any, headers: HttpHeaders) {
|
||||
return Http.post({url, data: qs.parse(data), headers}).then(
|
||||
return Http.post({url, data: data, headers}).then(
|
||||
(response: HttpResponse) => response.data as T,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user