Skip to content

Release v2.22.1 - #1181

Closed
yogeshchoudhary147 wants to merge 1 commit into
mainfrom
release/v2.22.1
Closed

Release v2.22.1#1181
yogeshchoudhary147 wants to merge 1 commit into
mainfrom
release/v2.22.1

Conversation

@yogeshchoudhary147

@yogeshchoudhary147 yogeshchoudhary147 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Changed

Summary by CodeRabbit

  • Release

    • Updated the package to version 2.22.1.
  • Documentation

    • Refreshed API documentation pages with improved navigation, section permalinks, accessibility markup, and updated source references.
    • Updated documentation search, hierarchy, and navigation data.
    • Added clearer styling for displayed mathematical expressions, including borders, spacing, and background colors.
    • Improved documentation layout consistency while preserving existing API content.

@yogeshchoudhary147
yogeshchoudhary147 requested a review from a team as a code owner July 29, 2026 06:22
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Version 2.22.1 updates release metadata and regenerates the documentation site, including encoded search/navigation data, CSS styling, bundled assets, and generated API pages. Documented API contracts are generally preserved, with selected source links and examples refreshed.

Changes

Release metadata and site assets

Layer / File(s) Summary
Release and asset updates
.version, package.json, docs/assets/*
Updates the version to 2.22.1, refreshes encoded documentation datasets, adjusts the Lunr wrapper, and adds block-math styling.
Documentation-site regeneration
docs/index.html, docs/hierarchy.html, docs/modules.html
Regenerates shared documentation-page markup, navigation, search UI, and sidebar structures.

Generated API documentation

Layer / File(s) Summary
Class and enum pages
docs/classes/*, docs/enums/*
Regenerates class and enum pages with updated markup, anchors, inherited-member rendering, navigation, and selected source/example content.
Interface pages
docs/interfaces/*
Regenerates interface documentation, including property/method sections, permalink anchors, source links, and updated examples or notes.
Function, type, and variable pages
docs/functions/*, docs/types/*, docs/variables/*
Regenerates remaining API pages while preserving most displayed signatures and updating selected source references and examples.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • auth0/auth0-react#1164: Similar release-driven updates to version metadata and encoded documentation assets.

Suggested reviewers: piyush-85, amitsingh05667

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: a v2.22.1 release/version bump.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/v2.22.1

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed: dependency version conflict. Check your lock file or package.json.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/functions/withAuth0.html`:
- Around line 21-24: Correct the source documentation text for the withAuth0
higher-order component so “f you have multiple” reads “if you have multiple,”
then regenerate docs/functions/withAuth0.html from that source.

In `@docs/interfaces/Auth0ContextInterface.html`:
- Around line 304-306: Remove the stale nonce parameter documentation from the
source JSDoc for getDpopNonce, which accepts only id, then regenerate the
Auth0ContextInterface documentation page.
- Line 236: Update the example under Auth0ContextInterface to call the
documented getAccessTokenWithPopup method instead of getTokenWithPopup,
preserving the existing options and config arguments.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8ff0b18d-fb2c-4d05-9fcd-ac56265a9c55

📥 Commits

Reviewing files that changed from the base of the PR and between 8b6a0bd and 051225d.

⛔ Files ignored due to path filters (2)
  • CHANGELOG.md is excluded by !CHANGELOG.md
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (100)
  • .version
  • docs/assets/hierarchy.js
  • docs/assets/highlight.css
  • docs/assets/main.js
  • docs/assets/navigation.js
  • docs/assets/search.js
  • docs/assets/style.css
  • docs/classes/AuthenticationError.html
  • docs/classes/ConnectError.html
  • docs/classes/GenericError.html
  • docs/classes/InMemoryCache.html
  • docs/classes/InvalidConfigurationError.html
  • docs/classes/LocalStorageCache.html
  • docs/classes/MfaChallengeError.html
  • docs/classes/MfaEnrollmentError.html
  • docs/classes/MfaEnrollmentFactorsError.html
  • docs/classes/MfaError.html
  • docs/classes/MfaListAuthenticatorsError.html
  • docs/classes/MfaRequiredError.html
  • docs/classes/MfaVerifyError.html
  • docs/classes/MissingRefreshTokenError.html
  • docs/classes/MissingScopesError.html
  • docs/classes/MyAccountApiError.html
  • docs/classes/OAuthError.html
  • docs/classes/PasskeyChallengeError.html
  • docs/classes/PasskeyError.html
  • docs/classes/PasskeyGetTokenError.html
  • docs/classes/PasskeyRegisterError.html
  • docs/classes/PopupCancelledError.html
  • docs/classes/PopupOpenError.html
  • docs/classes/PopupTimeoutError.html
  • docs/classes/TimeoutError.html
  • docs/classes/UseDpopNonceError.html
  • docs/classes/User.html
  • docs/enums/ResponseType.html
  • docs/functions/Auth0Provider.html
  • docs/functions/useAuth0.html
  • docs/functions/withAuth0.html
  • docs/functions/withAuthenticationRequired.html
  • docs/hierarchy.html
  • docs/index.html
  • docs/interfaces/ActClaim.html
  • docs/interfaces/Auth0ContextInterface.html
  • docs/interfaces/Authenticator.html
  • docs/interfaces/AuthorizationParams.html
  • docs/interfaces/ChallengeAuthenticatorParams.html
  • docs/interfaces/ChallengeResponse.html
  • docs/interfaces/ClientConfiguration.html
  • docs/interfaces/EnrollEmailParams.html
  • docs/interfaces/EnrollOtpParams.html
  • docs/interfaces/EnrollPushParams.html
  • docs/interfaces/EnrollSmsParams.html
  • docs/interfaces/EnrollVoiceParams.html
  • docs/interfaces/EnrollmentFactor.html
  • docs/interfaces/Factor.html
  • docs/interfaces/GetTokenSilentlyOptions.html
  • docs/interfaces/GetTokenWithPopupOptions.html
  • docs/interfaces/ICache.html
  • docs/interfaces/IdToken.html
  • docs/interfaces/LogoutOptions.html
  • docs/interfaces/LogoutUrlOptions.html
  • docs/interfaces/MfaApiClient.html
  • docs/interfaces/MyAccountApiClient.html
  • docs/interfaces/PasskeyApiClient.html
  • docs/interfaces/PopupConfigOptions.html
  • docs/interfaces/PopupLoginOptions.html
  • docs/interfaces/RedirectConnectAccountOptions.html
  • docs/interfaces/RedirectLoginOptions.html
  • docs/interfaces/RevokeRefreshTokenOptions.html
  • docs/interfaces/UpdateAuthenticationMethodRequest.html
  • docs/interfaces/VerifyParams.html
  • docs/interfaces/WithAuth0Props.html
  • docs/interfaces/WithAuthenticationRequiredOptions.html
  • docs/modules.html
  • docs/types/AppState.html
  • docs/types/Auth0ProviderOptions.html
  • docs/types/Auth0ProviderWithClientOptions.html
  • docs/types/Auth0ProviderWithConfigOptions.html
  • docs/types/AuthenticationMethod.html
  • docs/types/AuthenticationMethodType.html
  • docs/types/CacheLocation.html
  • docs/types/Cacheable.html
  • docs/types/ConnectAccountRedirectResult.html
  • docs/types/ConnectedAccount.html
  • docs/types/CustomTokenExchangeOptions.html
  • docs/types/EnrollParams.html
  • docs/types/EnrollmentChallengeOptions.html
  • docs/types/EnrollmentChallengeResponse.html
  • docs/types/EnrollmentResponse.html
  • docs/types/EnrollmentVerifyOptions.html
  • docs/types/FetcherConfig.html
  • docs/types/InteractiveErrorHandler.html
  • docs/types/MfaFactorType.html
  • docs/types/PasskeyLoginOptions.html
  • docs/types/PasskeySignupOptions.html
  • docs/types/RefreshTokenMode.html
  • docs/types/TokenEndpointResponse.html
  • docs/variables/Auth0Context.html
  • docs/variables/RefreshTokenMode.html
  • package.json

Comment on lines 21 to +24
<p>Wrap your class components in this Higher Order Component to give them access to the Auth0Context.</p>
<p>Providing a context as the second argument allows you to configure the Auth0Provider the Auth0Context
should come from f you have multiple within your application.</p>
</div><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span id="withauth0p"><span class="tsd-kind-type-parameter">P</span> <span class="tsd-signature-keyword">extends</span> <a href="../interfaces/WithAuth0Props.html" class="tsd-signature-type tsd-kind-interface">WithAuth0Props</a></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">Component</span>: <span class="tsd-signature-type">ComponentType</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withauth0p">P</a><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/Auth0ContextInterface.html" class="tsd-signature-type tsd-kind-interface">Auth0ContextInterface</a><span class="tsd-signature-symbol">&lt;</span><a href="../classes/User.html" class="tsd-signature-type tsd-kind-class">User</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = Auth0Context</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ComponentType</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withauth0p">P</a><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">&quot;auth0&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/auth0/auth0-react/blob/4dc455b2a7caf587c8c6629d34bd2dc97974a56e/src/with-auth0.tsx#L29">src/with-auth0.tsx:29</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@auth0/auth0-react</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
</div>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the missing “i” in “if”.

Correct the source documentation text before regenerating this generated HTML page; it currently renders “come from f you have multiple”.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/functions/withAuth0.html` around lines 21 - 24, Correct the source
documentation text for the withAuth0 higher-order component so “f you have
multiple” reads “if you have multiple,” then regenerate
docs/functions/withAuth0.html from that source.

<section class="tsd-panel tsd-member">
<h3 class="tsd-anchor-link" id="getaccesstokenwithpopup"><span>get<wbr/>Access<wbr/>Token<wbr/>With<wbr/>Popup</span><a href="#getaccesstokenwithpopup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">getAccessTokenWithPopup</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="GetTokenWithPopupOptions.html" class="tsd-signature-type tsd-kind-interface">GetTokenWithPopupOptions</a><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">config</span><span class="tsd-signature-symbol">?:</span> <a href="PopupConfigOptions.html" class="tsd-signature-type tsd-kind-interface">PopupConfigOptions</a><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">&gt;</span></div>
<div class="tsd-comment tsd-typography"><pre><code class="js"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">token</span><span class="hl-1"> = </span><span class="hl-4">await</span><span class="hl-1"> </span><span class="hl-0">getTokenWithPopup</span><span class="hl-1">(</span><span class="hl-5">options</span><span class="hl-1">, </span><span class="hl-5">config</span><span class="hl-1">);</span>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use the documented popup method name.

Auth0ContextInterface exposes getAccessTokenWithPopup, but this example calls getTokenWithPopup, which will be undefined when copied.

Proposed fix
- const token = await getTokenWithPopup(options, config);
+ const token = await getAccessTokenWithPopup(options, config);
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div class="tsd-comment tsd-typography"><pre><code class="js"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">token</span><span class="hl-1"> = </span><span class="hl-4">await</span><span class="hl-1"> </span><span class="hl-0">getTokenWithPopup</span><span class="hl-1">(</span><span class="hl-5">options</span><span class="hl-1">, </span><span class="hl-5">config</span><span class="hl-1">);</span>
<div class="tsd-comment tsd-typography"><pre><code class="js"><span class="hl-6">const</span><span class="hl-1"> </span><span class="hl-7">token</span><span class="hl-1"> = </span><span class="hl-4">await</span><span class="hl-1"> </span><span class="hl-0">getAccessTokenWithPopup</span><span class="hl-1">(</span><span class="hl-5">options</span><span class="hl-1">, </span><span class="hl-5">config</span><span class="hl-1">);</span>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/interfaces/Auth0ContextInterface.html` at line 236, Update the example
under Auth0ContextInterface to call the documented getAccessTokenWithPopup
method instead of getTokenWithPopup, preserving the existing options and config
arguments.

Comment on lines +304 to +306
<div class="tsd-comment tsd-typography">
<div class="tsd-tag-param">
<h4 class="tsd-anchor-link" id="param-nonce">Param: nonce<a href="#param-nonce" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>The nonce value.</p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Remove the nonexistent nonce parameter from getDpopNonce docs.

The signature accepts only id; move/remove this stale @param nonce documentation in the source JSDoc, then regenerate the page.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/interfaces/Auth0ContextInterface.html` around lines 304 - 306, Remove
the stale nonce parameter documentation from the source JSDoc for getDpopNonce,
which accepts only id, then regenerate the Auth0ContextInterface documentation
page.

@yogeshchoudhary147

Copy link
Copy Markdown
Contributor Author

Closing in favor of a new PR that correctly bumps the package.json minimum version of @auth0/auth0-spa-js to ^2.24.1, not just the lock file.

@yogeshchoudhary147
yogeshchoudhary147 deleted the release/v2.22.1 branch July 29, 2026 06:46
@coderabbitai coderabbitai Bot mentioned this pull request Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant