react-redux-django-auth 1.4.6 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -604,7 +604,23 @@ const DashboardLayout = () => {
604
604
  };
605
605
  ```
606
606
  ## React Native Usage
607
+ #### Setting Auth Provider
607
608
 
609
+ ```
610
+ import { Slot } from "expo-router";
611
+ import AuthProviderNative from "./auth/AuthProviderNative";
612
+
613
+ export default function RootLayout() {
614
+ // Replace with your actual backend URL
615
+ const API_URL = "https://api.yourdomain.com/v1";
616
+
617
+ return (
618
+ <AuthProviderNative apiUrl={API_URL}>
619
+ <Slot />
620
+ </AuthProviderNative>
621
+ );
622
+ }
623
+ ```
608
624
 
609
625
  #### useBiometric hook
610
626
  ```
@@ -1,6 +1,7 @@
1
1
  export declare const auth: {
2
2
  initialize: () => void;
3
3
  };
4
- export { default as AuthProvider } from './AuthProvider';
4
+ export { default as AuthProviderNative } from './AuthProvider';
5
5
  export { default as store } from './store';
6
6
  export { default as useGoogleAuthNative } from './hooks/useGoogleAuth';
7
+ export { setBaseURL } from '../auth-core/apis/config';
@@ -1,6 +1,7 @@
1
1
  import { setupAuth } from '../auth-core/setup/setupAuth';
2
2
  import { storage } from './storage/nativeStorage';
3
3
  export var auth = setupAuth(storage);
4
- export { default as AuthProvider } from './AuthProvider';
4
+ export { default as AuthProviderNative } from './AuthProvider';
5
5
  export { default as store } from './store';
6
6
  export { default as useGoogleAuthNative } from './hooks/useGoogleAuth';
7
+ export { setBaseURL } from '../auth-core/apis/config';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-redux-django-auth",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "A React Redux Authentication system for django app built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",