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
refactor!: rename androidNetworkingOptions to networkingOptions
Every other platform-specific option on Auth0Options (maxRetries,
credentialsManagerStorageKey) documents its platform restriction via
@remarks rather than baking the platform name into the identifier.
androidNetworkingOptions was the one exception. Since v6 hasn't shipped
yet, rename it now while it's free, ahead of adding iOS networking
config under its own umbrella later.
Copy file name to clipboardExpand all lines: EXAMPLES.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -644,10 +644,10 @@ function MyComponent() {
644
644
645
645
> **Platform Support:** Android only. Accepted on iOS for API compatibility but has no effect.
646
646
647
-
The `androidNetworkingOptions` configuration option lets you tune the native networking client (`DefaultClient` from Auth0.Android's OkHttp-based stack) used for every request the native SDK makes on your behalf — web auth token exchange, credential renewal, MFA, passkeys, and My Account API calls.
647
+
The `networkingOptions` configuration option lets you tune the native networking client (`DefaultClient` from Auth0.Android's OkHttp-based stack) used for every request the native SDK makes on your behalf — web auth token exchange, credential renewal, MFA, passkeys, and My Account API calls.
648
648
649
649
```ts
650
-
androidNetworkingOptions?: {
650
+
networkingOptions?: {
651
651
connectTimeout?: number; // seconds, default 10
652
652
readTimeout?: number; // seconds, default 10
653
653
writeTimeout?: number; // seconds, default 10
@@ -673,7 +673,7 @@ function App() {
673
673
<Auth0Provider
674
674
domain="YOUR_AUTH0_DOMAIN"
675
675
clientId="YOUR_AUTH0_CLIENT_ID"
676
-
androidNetworkingOptions={{
676
+
networkingOptions={{
677
677
connectTimeout:30,
678
678
readTimeout:30,
679
679
defaultHeaders: { 'X-App-Version':'1.2.3' },
@@ -693,7 +693,7 @@ import Auth0 from 'react-native-auth0';
// Stable, order-independent identity string for a config: keys the factory cache, the provider memo, and the native re-init decision. Object values are sorted so key order doesn't matter.
Copy file name to clipboardExpand all lines: src/platforms/native/bridge/NativeBridge.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import type {
9
9
MfaEnrollmentChallenge,
10
10
MfaChallengeResult,
11
11
PasskeyChallengeResponse,
12
-
AndroidNetworkingOptions,
12
+
NetworkingOptions,
13
13
}from'../../../types';
14
14
importtype{
15
15
LocalAuthenticationOptions,
@@ -40,7 +40,7 @@ export interface NativeBridge {
40
40
* @param useDPoP Whether to enable DPoP (Demonstrating Proof-of-Possession) for token requests.
41
41
* @param maxRetries The maximum number of retry attempts for transient errors during credential renewal. **iOS only** - ignored on Android. Defaults to 0.
42
42
* @param credentialsManagerStorageKey Namespaces the credentials store. **Android only** SharedPreferences file name. **iOS only** Keychain service name. Defaults to the shared store when omitted.
43
-
* @paramandroidNetworkingOptions Configures the native networking client. **Android only** - ignored on iOS.
43
+
* @paramnetworkingOptions Configures the native networking client. **Android only** - ignored on iOS.
0 commit comments