@tidecloak/react 0.9.12 → 0.9.13

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -67,15 +67,15 @@ export default function App() {
67
67
  }
68
68
  ```
69
69
 
70
- > ⚠️ If you don't define a route at `/auth/redirect`, and you're using the default `redirecturi`, your app **will break after login/logout**. Either create this route or override `redirecturi` in the provider config.
70
+ > ⚠️ If you don't define a route at `/auth/redirect`, and you're using the default `redirectUri`, your app **will break after login/logout**. Either create this route or override `redirectUri` in the provider config.
71
71
  >
72
- > If you override the `redirecturi`, you **must** ensure that the custom path exists in your router. Otherwise, the app will redirect to a non-existent route and fail.
72
+ > If you override the `redirectUri`, you **must** ensure that the custom path exists in your router. Otherwise, the app will redirect to a non-existent route and fail.
73
73
 
74
74
  ---
75
75
 
76
76
  ## 4. Redirect URI Handling
77
77
 
78
- TideCloak supports an optional `redirecturi` config field. This defines where the user is sent after login/logout.
78
+ TideCloak supports an optional `redirectUri` config field. This defines where the user is sent after login/logout.
79
79
 
80
80
  If omitted, it defaults to:
81
81
 
@@ -88,12 +88,12 @@ If omitted, it defaults to:
88
88
  You must **create this route** if you use the default, or explicitly override it:
89
89
 
90
90
  ```tsx
91
- <TideCloakProvider config={{ ...adapter, redirecturi: 'https://yourapp.com/auth/callback' }}>
91
+ <TideCloakProvider config={{ ...adapter, redirectUri: 'https://yourapp.com/auth/callback' }}>
92
92
  <YourApp />
93
93
  </TideCloakProvider>
94
94
  ```
95
95
 
96
- > ⚠️ If you override the `redirecturi`, make sure the specified path exists in your app. Missing this route will cause failed redirects.
96
+ > ⚠️ If you override the `redirectUri`, make sure the specified path exists in your app. Missing this route will cause failed redirects.
97
97
 
98
98
  ### Example: Redirect Handling Page
99
99
 
@@ -137,7 +137,7 @@ export default function RedirectPage() {
137
137
  }
138
138
  ```
139
139
 
140
- **Description:** This page helps finalize the login or logout flow, and also reacts to token expiration events that may have triggered a redirect. It's required if you're using the default `redirecturi`. If you override the redirect URI, the file is optional—but the **route** for the redirect **must** still exist in your app.
140
+ **Description:** This page helps finalize the login or logout flow, and also reacts to token expiration events that may have triggered a redirect. It's required if you're using the default `redirectUri`. If you override the redirect URI, the file is optional—but the **route** for the redirect **must** still exist in your app.
141
141
 
142
142
  ---
143
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidecloak/react",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "TideCloak client-side React SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -48,6 +48,6 @@
48
48
  "@types/react-dom": "^19.1.6"
49
49
  },
50
50
  "dependencies": {
51
- "@tidecloak/js": "^0.9.12"
51
+ "@tidecloak/js": "^0.9.13"
52
52
  }
53
53
  }