You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to be able to use @ionic-native/http/ngx with HTTPS pinning in a mobile/Ionic app.
Describe the solution you'd like
By default, the plugin should still use Angular HttpClient, but there should be an option to replace it. I am thinking of something like:
export interface OAuthHttpClient {
// options should probably have an own interface; too bad node_modules/@angular/common/http/http.d.ts does not provide one
get<T>(endpoint: string, options: any): Observable<T>;
// post and other methods used in the lib as well
}
And then, in the lib-consumer you could do something like:
Is your feature request related to a problem? Please describe.
I want to be able to use
@ionic-native/http/ngx
with HTTPS pinning in a mobile/Ionic app.Describe the solution you'd like
By default, the plugin should still use Angular HttpClient, but there should be an option to replace it. I am thinking of something like:
And then, in the lib-consumer you could do something like:
and set it in the AuthConfig or do sth like this (but I think this would break your backward-compatibility):
Describe alternatives you've considered
Using an Ionic specific lib...
Additional context
Nothing for now
The text was updated successfully, but these errors were encountered: