@tidecloak/nextjs 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.
- package/README.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ export default MyApp;
|
|
|
111
111
|
|
|
112
112
|
## 4. Redirect URI Handling
|
|
113
113
|
|
|
114
|
-
TideCloak supports an optional `
|
|
114
|
+
TideCloak supports an optional `redirectUri` parameter. This is the URL users are sent to after login or logout.
|
|
115
115
|
|
|
116
116
|
If omitted, it defaults to:
|
|
117
117
|
|
|
@@ -121,14 +121,14 @@ If omitted, it defaults to:
|
|
|
121
121
|
|
|
122
122
|
> If your app runs at `http://localhost:3000`, then by default users will be redirected to `http://localhost:3000/auth/redirect` after login or logout.
|
|
123
123
|
>
|
|
124
|
-
> If that route doesn't exist in your project, you must create it or explicitly define a different `
|
|
124
|
+
> If that route doesn't exist in your project, you must create it or explicitly define a different `redirectUri` in your TideCloak config.
|
|
125
125
|
|
|
126
126
|
If you use the default, you **must create a page** at `/auth/redirect` in your app.
|
|
127
127
|
|
|
128
128
|
You can customize this URI in your provider config:
|
|
129
129
|
|
|
130
130
|
```tsx
|
|
131
|
-
<TideCloakProvider config={{ ...adapter,
|
|
131
|
+
<TideCloakProvider config={{ ...adapter, redirectUri: 'https://yourapp.com/auth/callback' }}>
|
|
132
132
|
{children}
|
|
133
133
|
</TideCloakProvider>
|
|
134
134
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tidecloak/nextjs",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"description": "TideCloak nextjs SDK",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"prepare": "npm run build"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tidecloak/react": "^0.9.
|
|
52
|
-
"@tidecloak/verify": "^0.9.
|
|
51
|
+
"@tidecloak/react": "^0.9.13",
|
|
52
|
+
"@tidecloak/verify": "^0.9.13"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.1.8",
|