From 321a4ade82b3a6953136b2fe707461c81b81a8d9 Mon Sep 17 00:00:00 2001
From: Alexander Hoekje List
Date: Mon, 20 May 2024 13:09:06 -0700
Subject: [PATCH 01/23] with-page-auth-required.ts is incompatible with next14
app router
---
src/helpers/with-page-auth-required.ts | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/helpers/with-page-auth-required.ts b/src/helpers/with-page-auth-required.ts
index e356bacf3..a9367e117 100644
--- a/src/helpers/with-page-auth-required.ts
+++ b/src/helpers/with-page-auth-required.ts
@@ -136,7 +136,7 @@ export type WithPageAuthRequiredAppRouterOptions = {
* // app/protected-page/page.js
* import { withPageAuthRequired } from '@auth0/nextjs-auth0';
*
- * export default function withPageAuthRequired(ProtectedPage() {
+ * export default withPageAuthRequired(async function ProtectedPage() {
* return Protected content
;
* }, { returnTo: '/protected-page' });
* ```
@@ -153,13 +153,15 @@ export type WithPageAuthRequiredAppRouterOptions = {
*
* ```js
* // app/protected-page/[slug]/page.js
- * import { withPageAuthRequired } from '@auth0/nextjs-auth0';
+ * import { AppRouterPageRouteOpts, withPageAuthRequired } from '@auth0/nextjs-auth0';
*
- * export default function withPageAuthRequired(ProtectedPage() {
+ * export default withPageAuthRequired(async function ProtectedPage({
+ * params, searchParams
+ * }: AppRouterPageRouteOpts) {
* return Protected content
;
* }, {
* returnTo({ params }) {
- * return `/protected-page/${params.slug}`
+ * return `/protected-page/${params?.slug}`;
* }
* });
* ```
From e32e90379fb39b2f6b1cb2f26b033e52560ab674 Mon Sep 17 00:00:00 2001
From: Alexander Hoekje List
Date: Mon, 20 May 2024 13:27:04 -0700
Subject: [PATCH 02/23] adds correct export
---
src/helpers/with-page-auth-required.ts | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/helpers/with-page-auth-required.ts b/src/helpers/with-page-auth-required.ts
index a9367e117..7ef588548 100644
--- a/src/helpers/with-page-auth-required.ts
+++ b/src/helpers/with-page-auth-required.ts
@@ -136,9 +136,11 @@ export type WithPageAuthRequiredAppRouterOptions = {
* // app/protected-page/page.js
* import { withPageAuthRequired } from '@auth0/nextjs-auth0';
*
- * export default withPageAuthRequired(async function ProtectedPage() {
+ * const ProtectedPage = withPageAuthRequired(async function ProtectedPage() {
* return Protected content
;
* }, { returnTo: '/protected-page' });
+ *
+ * export default ProtectedPage;
* ```
*
* If the user visits `/protected-page` without a valid session, it will redirect the user to the
@@ -154,16 +156,19 @@ export type WithPageAuthRequiredAppRouterOptions = {
* ```js
* // app/protected-page/[slug]/page.js
* import { AppRouterPageRouteOpts, withPageAuthRequired } from '@auth0/nextjs-auth0';
- *
- * export default withPageAuthRequired(async function ProtectedPage({
+ *
+ * const ProtectedPage = withPageAuthRequired(async function ProtectedPage({
* params, searchParams
* }: AppRouterPageRouteOpts) {
- * return Protected content
;
+ * const slug = params?.slug as string;
+ * return Protected content for {slug}
;
* }, {
* returnTo({ params }) {
* return `/protected-page/${params?.slug}`;
* }
* });
+ *
+ * export default ProtectedPage;
* ```
*
* @category Server
From 56d9a4c4870ad7ddff9534906f651bb8c1dc644d Mon Sep 17 00:00:00 2001
From: Steven Wong
Date: Thu, 25 Jul 2024 22:25:18 +0800
Subject: [PATCH 03/23] Update codeowner file with new GitHub team name
---
.github/CODEOWNERS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 60f116c05..7958e8bdd 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1 +1 @@
-* @auth0/dx-sdks-engineer
+* @auth0/project-dx-sdks-engineer-codeowner
From 2bb66ee3f79e29e5a25b8ba646c4baccc274583f Mon Sep 17 00:00:00 2001
From: Desu Sai Venkat <48179357+desusai7@users.noreply.github.com>
Date: Thu, 12 Sep 2024 15:12:38 +0530
Subject: [PATCH 04/23] ci: changed pull_request_target to pull_request and
removed the authorize step (#1774)
---
.github/workflows/browserstack.yml | 10 +---------
.github/workflows/semgrep.yml | 9 +--------
.github/workflows/snyk.yml | 9 +--------
3 files changed, 3 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml
index b6808a6d1..11d4b55bc 100644
--- a/.github/workflows/browserstack.yml
+++ b/.github/workflows/browserstack.yml
@@ -3,7 +3,7 @@ name: Browserstack
on:
merge_group:
workflow_dispatch:
- pull_request_target:
+ pull_request:
types:
- opened
- synchronize
@@ -23,15 +23,7 @@ env:
CACHE_KEY: '${{ github.event.pull_request.head.sha || github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}'
jobs:
- authorize:
- name: Authorize
- environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
- runs-on: ubuntu-latest
- steps:
- - run: true
-
browserstack:
- needs: authorize # Require approval before running on forked pull requests
name: Run Tests
runs-on: ubuntu-latest
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
index a3aace780..8ecf94071 100644
--- a/.github/workflows/semgrep.yml
+++ b/.github/workflows/semgrep.yml
@@ -2,7 +2,7 @@ name: Semgrep
on:
merge_group:
- pull_request_target:
+ pull_request:
types:
- opened
- synchronize
@@ -20,15 +20,8 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
- authorize:
- name: Authorize
- environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
- runs-on: ubuntu-latest
- steps:
- - run: true
run:
- needs: authorize # Require approval before running on forked pull requests
name: Check for Vulnerabilities
runs-on: ubuntu-latest
diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml
index 0ebacbece..74e00911c 100644
--- a/.github/workflows/snyk.yml
+++ b/.github/workflows/snyk.yml
@@ -3,7 +3,7 @@ name: Snyk
on:
merge_group:
workflow_dispatch:
- pull_request_target:
+ pull_request:
types:
- opened
- synchronize
@@ -21,15 +21,8 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
- authorize:
- name: Authorize
- environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
- runs-on: ubuntu-latest
- steps:
- - run: true
check:
- needs: authorize
name: Check for Vulnerabilities
runs-on: ubuntu-latest
From ddf3fd7c741a2faca529a81e8825c8f3bb2b170c Mon Sep 17 00:00:00 2001
From: Tushar Pandey
Date: Thu, 31 Oct 2024 17:03:01 +0530
Subject: [PATCH 05/23] added RL workflow (#1787)
---
.github/actions/rl-scanner/action.yml | 71 +++++++++++++++++++++++++++
.github/workflows/release.yml | 14 ++++++
.github/workflows/rl-secure.yml | 67 +++++++++++++++++++++++++
3 files changed, 152 insertions(+)
create mode 100644 .github/actions/rl-scanner/action.yml
create mode 100644 .github/workflows/rl-secure.yml
diff --git a/.github/actions/rl-scanner/action.yml b/.github/actions/rl-scanner/action.yml
new file mode 100644
index 000000000..eb0171342
--- /dev/null
+++ b/.github/actions/rl-scanner/action.yml
@@ -0,0 +1,71 @@
+name: 'Reversing Labs Scanner'
+description: 'Runs the Reversing Labs scanner on a specified artifact.'
+inputs:
+ artifact-path:
+ description: 'Path to the artifact to be scanned.'
+ required: true
+ version:
+ description: 'Version of the artifact.'
+ required: true
+
+runs:
+ using: 'composite'
+ steps:
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.10'
+
+ - name: Install Python dependencies
+ shell: bash
+ run: |
+ pip install boto3 requests
+
+ - name: Configure AWS credentials
+ uses: aws-actions/configure-aws-credentials@v1
+ with:
+ role-to-assume: ${{ env.PRODSEC_TOOLS_ARN }}
+ aws-region: us-east-1
+ mask-aws-account-id: true
+
+ - name: Install RL Wrapper
+ shell: bash
+ run: |
+ pip install rl-wrapper>=1.0.0 --index-url "https://${{ env.PRODSEC_TOOLS_USER }}:${{ env.PRODSEC_TOOLS_TOKEN }}@a0us.jfrog.io/artifactory/api/pypi/python-local/simple"
+
+ - name: Run RL Scanner
+ shell: bash
+ env:
+ RLSECURE_LICENSE: ${{ env.RLSECURE_LICENSE }}
+ RLSECURE_SITE_KEY: ${{ env.RLSECURE_SITE_KEY }}
+ SIGNAL_HANDLER_TOKEN: ${{ env.SIGNAL_HANDLER_TOKEN }}
+ PYTHONUNBUFFERED: 1
+ run: |
+ if [ ! -f "${{ inputs.artifact-path }}" ]; then
+ echo "Artifact not found: ${{ inputs.artifact-path }}"
+ exit 1
+ fi
+
+ rl-wrapper \
+ --artifact "${{ inputs.artifact-path }}" \
+ --name "${{ github.event.repository.name }}" \
+ --version "${{ inputs.version }}" \
+ --repository "${{ github.repository }}" \
+ --commit "${{ github.sha }}" \
+ --build-env "github_actions" \
+ --suppress_output
+
+ # Check the outcome of the scanner
+ if [ $? -ne 0 ]; then
+ echo "RL Scanner failed."
+ echo "scan-status=failed" >> $GITHUB_ENV
+ exit 1
+ else
+ echo "RL Scanner passed."
+ echo "scan-status=success" >> $GITHUB_ENV
+ fi
+
+outputs:
+ scan-status:
+ description: 'The outcome of the scan process.'
+ value: ${{ env.scan-status }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e6c8430d1..5daf1e151 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,8 +15,22 @@ permissions:
### TODO: Also remove `npm-release` workflow from this repo's .github/workflows folder once the repo is public.
jobs:
+ rl-scanner:
+ uses: ./.github/workflows/rl-secure.yml
+ with:
+ node-version: 18 ## depends if build requires node else we can remove this.
+ artifact-name: 'nextjs-auth0.tgz' ## Will change respective to Repository
+ secrets:
+ RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
+ RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
+ SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
+ PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
+ PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
+ PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
+
release:
uses: ./.github/workflows/npm-release.yml
+ needs: rl-scanner ## this is important as this will not let release job to run until rl-scanner is done
with:
node-version: 18
require-build: false
diff --git a/.github/workflows/rl-secure.yml b/.github/workflows/rl-secure.yml
new file mode 100644
index 000000000..96c4efbe4
--- /dev/null
+++ b/.github/workflows/rl-secure.yml
@@ -0,0 +1,67 @@
+name: RL-Secure Workflow
+
+on:
+ workflow_call:
+ inputs:
+ node-version: ## depends if build requires node else we can remove this.
+ required: true
+ type: string
+ artifact-name:
+ required: true
+ type: string
+ secrets:
+ RLSECURE_LICENSE:
+ required: true
+ RLSECURE_SITE_KEY:
+ required: true
+ SIGNAL_HANDLER_TOKEN:
+ required: true
+ PRODSEC_TOOLS_USER:
+ required: true
+ PRODSEC_TOOLS_TOKEN:
+ required: true
+ PRODSEC_TOOLS_ARN:
+ required: true
+
+jobs:
+ rl-scanner:
+ name: Run Reversing Labs Scanner
+ if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
+ runs-on: ubuntu-latest
+ outputs:
+ scan-status: ${{ steps.rl-scan-conclusion.outcome }}
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Build package
+ uses: ./.github/actions/build
+ with:
+ node: ${{ inputs.node-version }}
+
+ - name: Create tgz build artifact
+ run: |
+ tar -czvf ${{ inputs.artifact-name }} *
+
+ - id: get_version
+ uses: ./.github/actions/get-version
+
+ - name: Run RL Scanner
+ id: rl-scan-conclusion
+ uses: ./.github/actions/rl-scanner
+ with:
+ artifact-path: "$(pwd)/${{ inputs.artifact-name }}"
+ version: "${{ steps.get_version.outputs.version }}"
+ env:
+ RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
+ RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
+ SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
+ PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
+ PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
+ PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
+
+ - name: Output scan result
+ run: echo "scan-status=${{ steps.rl-scan-conclusion.outcome }}" >> $GITHUB_ENV
\ No newline at end of file
From d1e4151792aa3d845505e53ebd893f2bf71a8987 Mon Sep 17 00:00:00 2001
From: Jonathon Klobucar
Date: Fri, 4 Oct 2024 21:12:34 -0700
Subject: [PATCH 06/23] build(deps): bump jshttp/cookie from 0.6.0 to 0.7.1
---
package-lock.json | 15 ++++++++-------
package.json | 2 +-
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 58e61ce73..91b4d5fc9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"@panva/hkdf": "^1.0.2",
- "cookie": "^0.6.0",
+ "cookie": "^0.7.1",
"debug": "^4.3.4",
"joi": "^17.6.0",
"jose": "^4.9.2",
@@ -4787,9 +4787,10 @@
"dev": true
},
"node_modules/cookie": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
- "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
+ "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
+ "license": "MIT",
"engines": {
"node": ">= 0.6"
}
@@ -18852,9 +18853,9 @@
"dev": true
},
"cookie": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
- "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
+ "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="
},
"cookies": {
"version": "0.8.0",
diff --git a/package.json b/package.json
index 24689621c..757d41a6e 100644
--- a/package.json
+++ b/package.json
@@ -121,7 +121,7 @@
},
"dependencies": {
"@panva/hkdf": "^1.0.2",
- "cookie": "^0.6.0",
+ "cookie": "^0.7.1",
"debug": "^4.3.4",
"joi": "^17.6.0",
"jose": "^4.9.2",
From 777129d4829ec7fba0bd54c3e48e87670d40a453 Mon Sep 17 00:00:00 2001
From: Sambego
Date: Mon, 2 Dec 2024 08:49:16 +0100
Subject: [PATCH 07/23] Add a note to the current readme to point towards our
v4 branch for Next v15 support
---
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index b050fe8ee..a50a32076 100644
--- a/README.md
+++ b/README.md
@@ -25,6 +25,11 @@ The Auth0 Next.js SDK is a library for implementing user authentication in Next.
### Installation
+> [!NOTE]
+> #### Looking for Next.js v15 support?
+> We're currently hard at work building a new version of this Auth0 SDK that provides support for the latest version of Next.js v15.
+> You can find more info and try it out trough the [v4 branch of this repository](https://github.com/auth0/nextjs-auth0/tree/v4).
+
Using [npm](https://npmjs.org):
```sh
From 5a9a06a7230c3c8472a35157636f8ff4f11cef9a Mon Sep 17 00:00:00 2001
From: Tushar Pandey
Date: Fri, 31 Jan 2025 16:03:22 +0530
Subject: [PATCH 08/23] bump version to v3.6.0
---
.version | 2 +-
package.json | 2 +-
src/version.ts | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.version b/.version
index 4d0729e54..130165bc0 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-v3.5.0
\ No newline at end of file
+v3.6.0
diff --git a/package.json b/package.json
index 757d41a6e..3fb2d2c73 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@auth0/nextjs-auth0",
- "version": "3.5.0",
+ "version": "3.6.0",
"description": "Next.js SDK for signing in with Auth0",
"exports": {
".": "./dist/index.js",
diff --git a/src/version.ts b/src/version.ts
index 42760aaff..5047ed2cd 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export default '3.5.0';
+export default '3.6.0';
From 392d5d9b7b0900380a443fb73dfc2ed77df5bd6a Mon Sep 17 00:00:00 2001
From: Tushar Pandey
Date: Fri, 31 Jan 2025 16:03:34 +0530
Subject: [PATCH 09/23] update changelog
---
CHANGELOG.md | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 174443b50..f03d752ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Change Log
+## [v3.6.0](https://github.com/auth0/nextjs-auth0/tree/v3.6.0) (2025-01-31)
+This is a maintainance release for V3 of the SDK.
+V4 supports Next.JS 15 and React 19 and is published on [npm](https://www.npmjs.com/package/@auth0/nextjs-auth0)!
+We will continue to add features and security upgrades in V4 going further. Please migrate to V4 for a better experience.
+
+
+**Security**
+- [bump jshttp/cookie from 0.6.0 to 0.7.1](https://github.com/auth0/nextjs-auth0/pull/1778)
+
## [v3.5.0](https://github.com/auth0/nextjs-auth0/tree/v3.5.0) (2023-12-06)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v3.4.0...v3.5.0)
From 88f04d31f5f3dec7b822cf6e31e9543abd482e7d Mon Sep 17 00:00:00 2001
From: Tushar Pandey
Date: Fri, 31 Jan 2025 16:04:05 +0530
Subject: [PATCH 10/23] updated docs
---
docs/assets/style.css | 11 ++++++++
.../classes/client_use_user.RequestError.html | 4 +--
.../http_auth0_next_api_request.default.html | 4 +--
.../http_auth0_next_api_response.default.html | 4 +--
.../http_auth0_next_request.default.html | 4 +--
...tp_auth0_next_request_cookies.default.html | 4 +--
.../http_auth0_next_response.default.html | 4 +--
...p_auth0_next_response_cookies.default.html | 4 +--
docs/classes/session_session.default.html | 16 +++++------
.../utils_errors.AccessTokenError.html | 12 ++++----
docs/classes/utils_errors.AuthError.html | 12 ++++----
.../utils_errors.CallbackHandlerError.html | 12 ++++----
docs/classes/utils_errors.HandlerError.html | 12 ++++----
.../utils_errors.LoginHandlerError.html | 12 ++++----
.../utils_errors.LogoutHandlerError.html | 12 ++++----
.../utils_errors.ProfileHandlerError.html | 12 ++++----
.../utils_errors.AccessTokenErrorCode.html | 4 +--
docs/functions/client_use_user.default.html | 2 +-
docs/functions/client_use_user.useUser.html | 4 +--
.../config.configSingletonGetter.html | 2 +-
docs/functions/edge.getAccessToken-1.html | 4 +--
docs/functions/edge.getSession-1.html | 4 +--
docs/functions/edge.handleAuth-1.html | 6 ++--
docs/functions/edge.handleCallback-1.html | 2 +-
docs/functions/edge.handleLogin-1.html | 2 +-
docs/functions/edge.handleLogout-1.html | 2 +-
docs/functions/edge.handleProfile-1.html | 2 +-
docs/functions/edge.initAuth0-1.html | 4 +--
docs/functions/edge.touchSession-1.html | 4 +--
docs/functions/edge.updateSession-1.html | 4 +--
.../functions/edge.withApiAuthRequired-1.html | 6 ++--
.../edge.withMiddlewareAuthRequired.html | 4 +--
.../edge.withPageAuthRequired-1.html | 6 ++--
.../handlers_router_helpers.getHandler.html | 2 +-
...helpers_testing.generateSessionCookie.html | 2 +-
docs/functions/index.getAccessToken-1.html | 4 +--
docs/functions/index.getSession-1.html | 4 +--
docs/functions/index.handleAuth-1.html | 6 ++--
docs/functions/index.handleCallback-1.html | 2 +-
docs/functions/index.handleLogin-1.html | 2 +-
docs/functions/index.handleLogout-1.html | 2 +-
docs/functions/index.handleProfile-1.html | 2 +-
docs/functions/index.initAuth0-1.html | 4 +--
docs/functions/index.touchSession-1.html | 4 +--
docs/functions/index.updateSession-1.html | 4 +--
.../index.withApiAuthRequired-1.html | 6 ++--
.../index.withPageAuthRequired-1.html | 6 ++--
docs/functions/init._initAuth.html | 2 +-
.../client_use_user.UserProfile.html | 4 +--
...ent_with_page_auth_required.UserProps.html | 4 +--
..._required.WithPageAuthRequiredOptions.html | 8 +++---
docs/interfaces/config.NextConfig.html | 4 +--
.../handlers_callback.CallbackOptions.html | 10 +++----
.../handlers_login.AuthorizationParams.html | 12 ++++----
.../handlers_login.LoginOptions.html | 8 +++---
.../handlers_logout.LogoutOptions.html | 6 ++--
...n_get_access_token.AccessTokenRequest.html | 13 ++++-----
...get_access_token.GetAccessTokenResult.html | 4 +--
docs/interfaces/session_session.Claims.html | 2 +-
docs/interfaces/shared.Auth0Server.html | 28 +++++++++----------
docs/modules/client.html | 2 +-
docs/modules/client_use_user.html | 2 +-
.../client_with_page_auth_required.html | 2 +-
docs/modules/config.html | 2 +-
docs/modules/edge.html | 2 +-
docs/modules/handlers.html | 2 +-
docs/modules/handlers_auth.html | 2 +-
docs/modules/handlers_backchannel_logout.html | 2 +-
docs/modules/handlers_callback.html | 2 +-
docs/modules/handlers_login.html | 2 +-
docs/modules/handlers_logout.html | 2 +-
docs/modules/handlers_profile.html | 2 +-
docs/modules/handlers_router_helpers.html | 2 +-
docs/modules/helpers.html | 2 +-
docs/modules/helpers_testing.html | 2 +-
.../helpers_with_api_auth_required.html | 2 +-
...helpers_with_middleware_auth_required.html | 2 +-
.../helpers_with_page_auth_required.html | 2 +-
docs/modules/http.html | 2 +-
docs/modules/http_auth0_next_api_request.html | 2 +-
.../modules/http_auth0_next_api_response.html | 2 +-
docs/modules/http_auth0_next_request.html | 2 +-
.../http_auth0_next_request_cookies.html | 2 +-
docs/modules/http_auth0_next_response.html | 2 +-
.../http_auth0_next_response_cookies.html | 2 +-
docs/modules/index.html | 2 +-
docs/modules/init.html | 2 +-
docs/modules/session.html | 2 +-
docs/modules/session_get_access_token.html | 2 +-
docs/modules/session_get_session.html | 2 +-
docs/modules/session_session.html | 2 +-
docs/modules/session_touch_session.html | 2 +-
docs/modules/session_update_session.html | 2 +-
docs/modules/shared.html | 2 +-
docs/modules/utils_errors.html | 2 +-
docs/modules/version.html | 2 +-
docs/types/client_use_user.UserContext.html | 2 +-
docs/types/client_use_user.UserProvider.html | 2 +-
.../client_use_user.UserProviderProps.html | 2 +-
...ge_auth_required.WithPageAuthRequired.html | 2 +-
docs/types/config.ConfigParameters.html | 2 +-
docs/types/config.GetConfig.html | 2 +-
docs/types/edge.InitAuth0.html | 2 +-
.../types/handlers_auth.AppRouterOnError.html | 2 +-
docs/types/handlers_auth.HandleAuth.html | 4 +--
docs/types/handlers_auth.Handlers.html | 2 +-
.../handlers_auth.PageRouterOnError.html | 2 +-
...hannel_logout.HandleBackchannelLogout.html | 2 +-
.../handlers_callback.AfterCallback.html | 2 +-
...ndlers_callback.AfterCallbackAppRoute.html | 11 +++-----
...dlers_callback.AfterCallbackPageRoute.html | 11 +++-----
.../handlers_callback.CallbackHandler.html | 2 +-
...lers_callback.CallbackOptionsProvider.html | 2 +-
.../handlers_callback.HandleCallback.html | 11 +++-----
docs/types/handlers_login.GetLoginState.html | 2 +-
.../handlers_login.GetLoginStateAppRoute.html | 2 +-
...handlers_login.GetLoginStatePageRoute.html | 2 +-
docs/types/handlers_login.HandleLogin.html | 11 +++-----
docs/types/handlers_login.LoginHandler.html | 2 +-
.../handlers_login.LoginOptionsProvider.html | 2 +-
docs/types/handlers_logout.HandleLogout.html | 11 +++-----
docs/types/handlers_logout.LogoutHandler.html | 2 +-
...handlers_logout.LogoutOptionsProvider.html | 2 +-
docs/types/handlers_profile.AfterRefetch.html | 2 +-
...handlers_profile.AfterRefetchAppRoute.html | 2 +-
...andlers_profile.AfterRefetchPageRoute.html | 2 +-
.../types/handlers_profile.HandleProfile.html | 11 +++-----
.../handlers_profile.ProfileHandler.html | 2 +-
.../handlers_profile.ProfileOptions.html | 2 +-
...ndlers_profile.ProfileOptionsProvider.html | 2 +-
...lers_router_helpers.AppRouteHandlerFn.html | 2 +-
...uter_helpers.AppRouteHandlerFnContext.html | 2 +-
...dlers_router_helpers.AppRouterHandler.html | 2 +-
.../handlers_router_helpers.AuthHandler.html | 2 +-
.../handlers_router_helpers.Handler.html | 2 +-
...s_router_helpers.NextAppRouterHandler.html | 2 +-
..._router_helpers.NextPageRouterHandler.html | 2 +-
...ndlers_router_helpers.OptionsProvider.html | 2 +-
...ers_router_helpers.PageRouteHandlerFn.html | 2 +-
...lers_router_helpers.PageRouterHandler.html | 2 +-
...s_testing.GenerateSessionCookieConfig.html | 2 +-
...h_api_auth_required.AppRouteHandlerFn.html | 2 +-
...uth_required.AppRouteHandlerFnContext.html | 2 +-
...api_auth_required.WithApiAuthRequired.html | 2 +-
..._required.WithApiAuthRequiredAppRoute.html | 2 +-
...required.WithApiAuthRequiredPageRoute.html | 2 +-
...h_required.WithMiddlewareAuthRequired.html | 2 +-
...red.WithMiddlewareAuthRequiredOptions.html | 2 +-
...page_auth_required.AppRouterPageRoute.html | 2 +-
..._auth_required.AppRouterPageRouteOpts.html | 2 +-
...d.GetServerSidePropsResultWithSession.html | 2 +-
...ers_with_page_auth_required.PageRoute.html | 2 +-
...ge_auth_required.WithPageAuthRequired.html | 2 +-
...equired.WithPageAuthRequiredAppRouter.html | 2 +-
....WithPageAuthRequiredAppRouterOptions.html | 2 +-
...quired.WithPageAuthRequiredPageRouter.html | 2 +-
...WithPageAuthRequiredPageRouterOptions.html | 2 +-
docs/types/index.Auth0Server.html | 2 +-
docs/types/index.InitAuth0.html | 2 +-
docs/types/init.InitAuth0.html | 2 +-
...session_get_access_token.AfterRefresh.html | 2 +-
...get_access_token.AfterRefreshAppRoute.html | 2 +-
...et_access_token.AfterRefreshPageRoute.html | 2 +-
...ssion_get_access_token.GetAccessToken.html | 2 +-
.../types/session_get_session.GetSession.html | 2 +-
.../session_touch_session.TouchSession.html | 2 +-
.../session_update_session.UpdateSession.html | 2 +-
docs/types/shared.SessionStore.html | 2 +-
docs/types/shared.SessionStorePayload.html | 2 +-
docs/variables/shared.telemetry.html | 2 +-
docs/variables/version.default.html | 2 +-
171 files changed, 313 insertions(+), 321 deletions(-)
diff --git a/docs/assets/style.css b/docs/assets/style.css
index 108428c3f..07a385b73 100644
--- a/docs/assets/style.css
+++ b/docs/assets/style.css
@@ -11,6 +11,7 @@
--light-color-text-aside: #6e6e6e;
--light-color-link: #1f70c2;
+ --light-color-ts-keyword: #056bd6;
--light-color-ts-project: #b111c9;
--light-color-ts-module: var(--light-color-ts-project);
--light-color-ts-namespace: var(--light-color-ts-project);
@@ -50,6 +51,7 @@
--dark-color-text-aside: #dddddd;
--dark-color-link: #00aff4;
+ --dark-color-ts-keyword: #3399ff;
--dark-color-ts-project: #e358ff;
--dark-color-ts-module: var(--dark-color-ts-project);
--dark-color-ts-namespace: var(--dark-color-ts-project);
@@ -91,6 +93,7 @@
--color-text-aside: var(--light-color-text-aside);
--color-link: var(--light-color-link);
+ --color-ts-keyword: var(--light-color-ts-keyword);
--color-ts-module: var(--light-color-ts-module);
--color-ts-namespace: var(--light-color-ts-namespace);
--color-ts-enum: var(--light-color-ts-enum);
@@ -132,6 +135,7 @@
--color-text-aside: var(--dark-color-text-aside);
--color-link: var(--dark-color-link);
+ --color-ts-keyword: var(--dark-color-ts-keyword);
--color-ts-module: var(--dark-color-ts-module);
--color-ts-namespace: var(--dark-color-ts-namespace);
--color-ts-enum: var(--dark-color-ts-enum);
@@ -180,6 +184,7 @@ body {
--color-text-aside: var(--light-color-text-aside);
--color-link: var(--light-color-link);
+ --color-ts-keyword: var(--light-color-ts-keyword);
--color-ts-module: var(--light-color-ts-module);
--color-ts-namespace: var(--light-color-ts-namespace);
--color-ts-enum: var(--light-color-ts-enum);
@@ -219,6 +224,7 @@ body {
--color-text-aside: var(--dark-color-text-aside);
--color-link: var(--dark-color-link);
+ --color-ts-keyword: var(--dark-color-ts-keyword);
--color-ts-module: var(--dark-color-ts-module);
--color-ts-namespace: var(--dark-color-ts-namespace);
--color-ts-enum: var(--dark-color-ts-enum);
@@ -984,6 +990,11 @@ a.tsd-index-link {
overflow-x: auto;
}
+.tsd-signature-keyword {
+ color: var(--color-ts-keyword);
+ font-weight: normal;
+}
+
.tsd-signature-symbol {
color: var(--color-text-aside);
font-weight: normal;
diff --git a/docs/classes/client_use_user.RequestError.html b/docs/classes/client_use_user.RequestError.html
index 15042714d..1ba3de007 100644
--- a/docs/classes/client_use_user.RequestError.html
+++ b/docs/classes/client_use_user.RequestError.html
@@ -3,6 +3,6 @@
fails, for example due to being offline.
This error is not thrown when the status code of the response is 204, because that means the
user is not authenticated.
-