@tidecloak/create-nextjs 0.14.40-staging → 0.14.42-staging

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
@@ -52,7 +52,7 @@ my-app/
52
52
  │ │ └── page.jsx <- Example page guarded server-side by proxy.js
53
53
  │ ├── tide_dpop/
54
54
  │ │ └── [...path]/
55
- │ │ └── route.js <- Serves tide_dpop_auth.html, only needed if you turn on useDPoP
55
+ │ │ └── route.js <- Serves tide_dpop_auth.html, only needed if you turn on dpopConfig
56
56
  │ ├── layout.jsx <- Root layout
57
57
  │ ├── page.jsx <- Login page
58
58
  │ └── provider.jsx <- Wraps the app in TideCloakProvider
@@ -62,7 +62,7 @@ my-app/
62
62
  │ └── tcinit.sh <- Provisions the realm and writes tidecloak.json (npm run init)
63
63
  ├── public/
64
64
  │ ├── silent-check-sso.html <- Silent SSO check page
65
- │ └── tide_dpop_auth.html <- DPoP helper page (only used with useDPoP)
65
+ │ └── tide_dpop_auth.html <- DPoP helper page (only used with dpopConfig)
66
66
  ├── tidecloak.json <- Your TideCloak adapter config (a {} placeholder until init runs)
67
67
  ├── proxy.js <- Verifies the token server-side before protected pages load
68
68
  ├── jsconfig.json
@@ -175,7 +175,7 @@ function Header() {
175
175
  | `getValueFromToken(key)` | `(key: string) => any` | Read a custom claim from the access token. |
176
176
  | `getValueFromIdToken(key)` | `(key: string) => any` | Read a custom claim from the ID token. |
177
177
  | `hasRealmRole(role)` | `(role: string) => boolean` | Check a realm-level role. |
178
- | `hasClientRole(role, client?)` | `(role: string, client?: string) => boolean` | Check a client-level role; defaults to your app’s client ID if omitted. |
178
+ | `hasClientRole(role)` | `(role: string) => boolean` | Check a client-level role on your app’s client. |
179
179
  | `doEncrypt(data, policy?)` / `doDecrypt(data, policy?)` | `(data: any, policy?: Uint8Array) => Promise<any>` | Encrypt or decrypt payloads, optionally under a signed decryption policy. |
180
180
 
181
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tidecloak/create-nextjs",
3
- "version": "0.14.40-staging",
3
+ "version": "0.14.42-staging",
4
4
  "type": "module",
5
5
  "description": "Scaffold a TideCloak-ready Next.js app with optional IAM setup and working auth - start building instantly with a live example",
6
6
  "bin": {
@@ -4,8 +4,8 @@ import tcConfig from '../../../tidecloak.json'
4
4
 
5
5
  const ALLOWED_ROLE = 'offline_access'
6
6
 
7
- // Accepts plain Bearer tokens only. If you turn on useDPoP, call this with
8
- // secureFetch and extend it to accept the DPoP scheme and validate the proof server-side.
7
+ // Accepts plain Bearer tokens only. If you turn on dpopConfig, call this with
8
+ // the SDK's `fetch` and extend it to accept the DPoP scheme and validate the proof server-side.
9
9
  export async function GET(request) {
10
10
  const authHeader = request.headers.get('authorization')
11
11
  if (!authHeader?.startsWith('Bearer ')) {
@@ -3,7 +3,7 @@ import path from "path"
3
3
 
4
4
  // Tide DPoP resource-server endpoint.
5
5
  //
6
- // DPoP is opt-in. This route is only used when you pass `useDPoP` in the
6
+ // DPoP is opt-in. This route is only used when you pass `dpopConfig` in the
7
7
  // provider config; without it nothing requests this page and you can delete it.
8
8
  // With DPoP on, the SDK loads this page from your own origin at:
9
9
  // /tide_dpop/iss/<issuer-hex>/aud/<client-hex>/tide_dpop_auth.html
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-app",
3
- "version": "0.14.40-staging",
3
+ "version": "0.14.42-staging",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -12,7 +12,7 @@
12
12
  "next": "16.x",
13
13
  "react": "19.x",
14
14
  "react-dom": "19.x",
15
- "@tidecloak/nextjs": "0.14.40-staging"
15
+ "@tidecloak/nextjs": "0.14.42-staging"
16
16
  },
17
17
  "overrides": {
18
18
  "postcss": "^8.5.25",
@@ -4,8 +4,8 @@ import tcConfig from '../../../tidecloak.json'
4
4
 
5
5
  const ALLOWED_ROLE = 'offline_access'
6
6
 
7
- // Accepts plain Bearer tokens only. If you turn on useDPoP, call this with
8
- // secureFetch and extend it to accept the DPoP scheme and validate the proof server-side.
7
+ // Accepts plain Bearer tokens only. If you turn on dpopConfig, call this with
8
+ // the SDK's `fetch` and extend it to accept the DPoP scheme and validate the proof server-side.
9
9
  export async function GET(request: NextRequest): Promise<NextResponse> {
10
10
  const authHeader = request.headers.get('authorization')
11
11
  if (!authHeader?.startsWith('Bearer ')) {
@@ -3,7 +3,7 @@ import path from "path"
3
3
 
4
4
  // Tide DPoP resource-server endpoint.
5
5
  //
6
- // DPoP is opt-in. This route is only used when you pass `useDPoP` in the
6
+ // DPoP is opt-in. This route is only used when you pass `dpopConfig` in the
7
7
  // provider config; without it nothing requests this page and you can delete it.
8
8
  // With DPoP on, the SDK loads this page from your own origin at:
9
9
  // /tide_dpop/iss/<issuer-hex>/aud/<client-hex>/tide_dpop_auth.html
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-app",
3
- "version": "0.14.40-staging",
3
+ "version": "0.14.42-staging",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -12,7 +12,7 @@
12
12
  "next": "16.x",
13
13
  "react": "19.x",
14
14
  "react-dom": "19.x",
15
- "@tidecloak/nextjs": "0.14.40-staging"
15
+ "@tidecloak/nextjs": "0.14.42-staging"
16
16
  },
17
17
  "overrides": {
18
18
  "postcss": "^8.5.25",