Skip to content

fix(auth): silence commit-guard-discarded refresh in initial session - #2668

Merged
mandarini merged 1 commit into
masterfrom
fix/auth-js-discarded-refresh-log-level
Sep 4, 2026
Merged

mandarini merged 1 commit into
masterfrom
fix/auth-js-discarded-refresh-log-level

Conversation

@mandarini

@mandarini mandarini commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2665.

_emitInitialSession classified a few expected refresh outcomes (missing session, retryable fetch failure, a few dead-refresh-token codes) as warnings, but missed AuthRefreshDiscardedError, so it fell through to console.error even when the commit guard was just correctly discarding a refresh due to a concurrent sign-out. This treats that case the same way _recoverAndRefresh already does: debug-only, no warn or error.

Adds a test that simulates a concurrent signOut clearing storage mid-refresh and asserts neither console.warn nor console.error fire.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 7928ec2c-25e7-481c-bed0-066999593532

📥 Commits

Reviewing files that changed from the base of the PR and between 80f3f15 and c53ec2c.

📒 Files selected for processing (2)
  • packages/core/auth-js/src/GoTrueClient.ts
  • packages/core/auth-js/test/GoTrueClient.test.ts

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Prevented expected authentication refresh conflicts during sign-out from appearing as console errors.
    • Reduced unnecessary warning and error messages when session state changes during token refresh.

Walkthrough

_emitInitialSession now returns early for AuthRefreshDiscardedError. This prevents expected commit-guard-discarded refreshes from reaching warning or error logging. Tests simulate storage removal during an in-flight refresh and verify that initial session emission produces no console warnings or errors.

Assessment against linked issues

Objective Addressed Explanation
Treat AuthRefreshDiscardedError in _emitInitialSession as a successful no-op without calling console.error [#2665] ✅

Merge Risk: ⚪ Minimal · up to c53ec

Initial-session refreshes discarded after a concurrent sign-out now remain silent while preserving the existing token commit guard. The concurrent-storage-change regression coverage supports this expected no-op behavior, with no current merge-blocking risk identified.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

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.

@github-actions github-actions Bot added the auth-js Related to the auth-js library. label Sep 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2668

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2668

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2668

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2668

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2668

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2668

commit: c53ec2c

@mandarini
mandarini marked this pull request as ready for review September 4, 2026 12:03
@mandarini
mandarini requested review from a team as code owners September 4, 2026 12:03
@mandarini mandarini self-assigned this Sep 4, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.084% (+0.007%) from 82.077% — fix/auth-js-discarded-refresh-log-level into master

@mandarini
mandarini merged commit 71d3b44 into master Sep 4, 2026
32 of 33 checks passed
@mandarini
mandarini deleted the fix/auth-js-discarded-refresh-log-level branch September 4, 2026 12:14
ebroder added a commit to ebroder/supabase-js that referenced this pull request Sep 13, 2026
…carded

When two clients that share storage refresh concurrently (two tabs, or a
browser client while an @supabase/ssr cookie handoff rotates the token),
the second refresh's commit guard in `_callRefreshToken` discards its
rotated tokens with an `AuthRefreshDiscardedError` because storage was
rewritten under it. That is intended: the other client already committed
the newer session and the guard preserved it in storage.

`__loadSession` then translated that discard into `{ session: null }` for
every `getSession()` caller piggy-backing on the refresh, even though
storage held a valid, newer session. Downstream, supabase-js falls back
to the anon key and sends the whole request burst unauthenticated, which
under RLS surfaces as 406 on `.single()`, 401 on ungranted tables, or a
silent empty list.

On an `AuthRefreshDiscardedError`, re-read storage and adopt the session
it holds when it is valid and its own access token has not expired
(otherwise a dead token would go back to the caller as `error: null`, the
same failure one level down). A concurrent signOut clears storage
instead, so that case finds nothing to adopt and still returns
`{ session: null }`.

`setSession` and `refreshSession({ refresh_token })` pass their own token
to `_callRefreshToken` and never reach this path. No-arg `refreshSession()`
does read the adopted session back through `__loadSession` and refreshes
it rather than surfacing the discard, which matches supabase#2668 (the discard is
a concurrency signal, not a refresh failure); genuine refresh failures
still surface.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sickn33 added a commit to sickn33/agentic-awesome-skills that referenced this pull request Sep 28, 2026
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)

<h3>Snyk has created this PR to upgrade @supabase/supabase-js from 2.115.0 to 2.116.0.</h3>

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

<hr/>

- The recommended version is **6 versions** ahead of your current version.

- The recommended version was released **21 days ago**.

#### Breaking Change Risk

![Merge Risk: Low](https://img.shields.io/badge/Merge%20Risk%3A%20Low-006400?style=for-the-badge)

> **Notice:** This assessment is enhanced by AI.

<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>@supabase/supabase-js</b></summary>
    <ul>
      <li>
        <b>2.116.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.116.0">2026-09-07</a></br><h2>2.116.0 (2026-09-07)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>auth:</strong> add MFA recovery codes API (<a href="https://redirect.github.com/supabase/supabase-js/pull/2676" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2676/hovercard">#2676</a>)</li>
<li><strong>storage:</strong> add bucket lifecycle configuration (<a href="https://redirect.github.com/supabase/supabase-js/pull/2659" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2659/hovercard">#2659</a>)</li>
<li><strong>storage:</strong> topk 10k support (<a href="https://redirect.github.com/supabase/supabase-js/pull/2667" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2667/hovercard">#2667</a>)</li>
<li><strong>storage:</strong> add versionId support to create URL methods (<a href="https://redirect.github.com/supabase/supabase-js/pull/2678" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2678/hovercard">#2678</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>auth:</strong> silence commit-guard-discarded refresh in initial session (<a href="https://redirect.github.com/supabase/supabase-js/pull/2668" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2668/hovercard">#2668</a>)</li>
<li><strong>storage:</strong> drop legacy prefix from lifecycles (<a href="https://redirect.github.com/supabase/supabase-js/pull/2674" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2674/hovercard">#2674</a>)</li>
<li><strong>supabase:</strong> warn when schema is passed outside db options (<a href="https://redirect.github.com/supabase/supabase-js/pull/2663" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2663/hovercard">#2663</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>fadymak</li>
<li>Ferhat Elmas</li>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
<li>Tyler Hillery</li>
</ul>
      </li>
      <li>
        <b>2.116.0-canary.3</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.116.0-canary.3">2026-09-07</a></br><h2>2.116.0-canary.3 (2026-09-07)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>auth:</strong> add MFA recovery codes API (<a href="https://redirect.github.com/supabase/supabase-js/pull/2676" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2676/hovercard">#2676</a>)</li>
<li><strong>storage:</strong> add versionId support to create URL methods (<a href="https://redirect.github.com/supabase/supabase-js/pull/2678" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2678/hovercard">#2678</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>fadymak</li>
<li>Katerina Skroumpelou</li>
<li>Tyler Hillery</li>
</ul>
      </li>
      <li>
        <b>2.116.0-canary.2</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.116.0-canary.2">2026-09-07</a></br><h2>2.116.0-canary.2 (2026-09-07)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>storage:</strong> topk 10k support (<a href="https://redirect.github.com/supabase/supabase-js/pull/2667" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2667/hovercard">#2667</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>storage:</strong> drop legacy prefix from lifecycles (<a href="https://redirect.github.com/supabase/supabase-js/pull/2674" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2674/hovercard">#2674</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Ferhat Elmas</li>
</ul>
      </li>
      <li>
        <b>2.116.0-canary.1</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.116.0-canary.1">2026-09-04</a></br><h2>2.116.0-canary.1 (2026-09-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>auth:</strong> silence commit-guard-discarded refresh in initial session (<a href="https://redirect.github.com/supabase/supabase-js/pull/2668" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2668/hovercard">#2668</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
</ul>
      </li>
      <li>
        <b>2.116.0-canary.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.116.0-canary.0">2026-09-04</a></br><h2>2.116.0-canary.0 (2026-09-04)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>storage:</strong> add bucket lifecycle configuration (<a href="https://redirect.github.com/supabase/supabase-js/pull/2659" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2659/hovercard">#2659</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Ferhat Elmas</li>
</ul>
      </li>
      <li>
        <b>2.115.1-canary.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.115.1-canary.0">2026-09-04</a></br><h2>2.115.1-canary.0 (2026-09-04)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>supabase:</strong> warn when schema is passed outside db options (<a href="https://redirect.github.com/supabase/supabase-js/pull/2663" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2663/hovercard">#2663</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
</ul>
      </li>
      <li>
        <b>2.115.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.115.0">2026-09-03</a></br><h2>2.115.0 (2026-09-03)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>postgrest:</strong> add getOpenApiSpec() (<a href="https://redirect.github.com/supabase/supabase-js/pull/2651" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2651/hovercard">#2651</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
</ul>
      </li>
    </ul>
    from <a href="https://redirect.github.com/supabase/supabase-js/releases">@supabase/supabase-js GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with your project.
> - This PR was automatically created by Snyk using the credentials of a real user.

---

**Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ImZha2Uta2V5IiwiYW5vbnltb3VzSWQiOiJiNTI4YTUwYy03YWEwLTQzZWEtYjhiZS0wODIyZmMwMzZlNDUiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImI1MjhhNTBjLTdhYTAtNDNlYS1iOGJlLTA4MjJmYzAzNmU0NSJ9fQ==" width="0" height="0"/>

> - 🧐 [View latest project report](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR settings](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?pkg&#x3D;@supabase/supabase-js&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: # 'snyk:metadata:{"breakingChangeRiskLevel":"low","FF_showPullRequestBreakingChanges":true,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@supabase/supabase-js","from":"2.115.0","to":"2.116.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"b528a50c-7aa0-43ea-b8be-0822fc036e45","prPublicId":"b528a50c-7aa0-43ea-b8be-0822fc036e45","packageManager":"npm","priorityScoreList":[],"projectPublicId":"e1f199d3-0a16-4ac7-a9a1-528e774fc41f","projectUrl":"https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":6,"publishedDate":"2026-09-07T16:26:56.729Z"},"vulns":[]}'
sickn33 added a commit to sickn33/agentic-awesome-skills that referenced this pull request Oct 16, 2026
![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg)

<h3>Snyk has created this PR to upgrade @supabase/supabase-js from 2.116.0 to 2.117.1.</h3>

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

<hr/>

- The recommended version is **5 versions** ahead of your current version.

- The recommended version was released **23 days ago**.

#### Breaking Change Risk

![Merge Risk: Low](https://img.shields.io/badge/Merge%20Risk%3A%20Low-006400?style=for-the-badge)

> **Notice:** This assessment is enhanced by AI.

<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>@supabase/supabase-js</b></summary>
    <ul>
      <li>
        <b>2.117.1</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.117.1">2026-09-23</a></br><h2>2.117.1 (2026-09-23)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>auth:</strong> return stored session when a refresh loses to another tab (<a href="https://redirect.github.com/supabase/supabase-js/pull/2698" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2698/hovercard">#2698</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
</ul>
      </li>
      <li>
        <b>2.117.1-canary.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.117.1-canary.0">2026-09-23</a></br><h2>2.117.1-canary.0 (2026-09-23)</h2>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>auth:</strong> return stored session when a refresh loses to another tab (<a href="https://redirect.github.com/supabase/supabase-js/pull/2698" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2698/hovercard">#2698</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
</ul>
      </li>
      <li>
        <b>2.117.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.117.0">2026-09-22</a></br><h2>2.117.0 (2026-09-22)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>auth:</strong> forward options.mediation to navigator.credentials.get in signInWithPasskey (<a href="https://redirect.github.com/supabase/supabase-js/pull/2675" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2675/hovercard">#2675</a>)</li>
<li><strong>auth:</strong> enable passkey API by default and deprecate experimental passkey opt-in (<a href="https://redirect.github.com/supabase/supabase-js/pull/2695" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2695/hovercard">#2695</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>fadymak</li>
<li>James Argarin</li>
<li>Katerina Skroumpelou</li>
</ul>
      </li>
      <li>
        <b>2.117.0-canary.1</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.117.0-canary.1">2026-09-22</a></br><h2>2.117.0-canary.1 (2026-09-22)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>auth:</strong> enable passkey API by default and deprecate experimental passkey opt-in (<a href="https://redirect.github.com/supabase/supabase-js/pull/2695" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2695/hovercard">#2695</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>fadymak</li>
</ul>
      </li>
      <li>
        <b>2.117.0-canary.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.117.0-canary.0">2026-09-17</a></br><h2>2.117.0-canary.0 (2026-09-17)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>auth:</strong> forward options.mediation to navigator.credentials.get in signInWithPasskey (<a href="https://redirect.github.com/supabase/supabase-js/pull/2675" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2675/hovercard">#2675</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>James Argarin</li>
<li>Katerina Skroumpelou</li>
</ul>
      </li>
      <li>
        <b>2.116.0</b> - <a href="https://redirect.github.com/supabase/supabase-js/releases/tag/v2.116.0">2026-09-07</a></br><h2>2.116.0 (2026-09-07)</h2>
<h3>🚀 Features</h3>
<ul>
<li><strong>auth:</strong> add MFA recovery codes API (<a href="https://redirect.github.com/supabase/supabase-js/pull/2676" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2676/hovercard">#2676</a>)</li>
<li><strong>storage:</strong> add bucket lifecycle configuration (<a href="https://redirect.github.com/supabase/supabase-js/pull/2659" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2659/hovercard">#2659</a>)</li>
<li><strong>storage:</strong> topk 10k support (<a href="https://redirect.github.com/supabase/supabase-js/pull/2667" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2667/hovercard">#2667</a>)</li>
<li><strong>storage:</strong> add versionId support to create URL methods (<a href="https://redirect.github.com/supabase/supabase-js/pull/2678" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2678/hovercard">#2678</a>)</li>
</ul>
<h3>🩹 Fixes</h3>
<ul>
<li><strong>auth:</strong> silence commit-guard-discarded refresh in initial session (<a href="https://redirect.github.com/supabase/supabase-js/pull/2668" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2668/hovercard">#2668</a>)</li>
<li><strong>storage:</strong> drop legacy prefix from lifecycles (<a href="https://redirect.github.com/supabase/supabase-js/pull/2674" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2674/hovercard">#2674</a>)</li>
<li><strong>supabase:</strong> warn when schema is passed outside db options (<a href="https://redirect.github.com/supabase/supabase-js/pull/2663" data-hovercard-type="pull_request" data-hovercard-url="/supabase/supabase-js/pull/2663/hovercard">#2663</a>)</li>
</ul>
<h3>❤️ Thank You</h3>
<ul>
<li>fadymak</li>
<li>Ferhat Elmas</li>
<li>Katerina Skroumpelou <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mandarini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://redirect.github.com/mandarini">@ mandarini</a></li>
<li>Tyler Hillery</li>
</ul>
      </li>
    </ul>
    from <a href="https://redirect.github.com/supabase/supabase-js/releases">@supabase/supabase-js GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with your project.
> - This PR was automatically created by Snyk using the credentials of a real user.

---

**Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6ImZha2Uta2V5IiwiYW5vbnltb3VzSWQiOiJiOGRkODljNi03NzNlLTQ0YTMtYmQ2Zi1iOGY0OWYyMWIzYzMiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImI4ZGQ4OWM2LTc3M2UtNDRhMy1iZDZmLWI4ZjQ5ZjIxYjNjMyJ9fQ==" width="0" height="0"/>

> - 🧐 [View latest project report](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR settings](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f/settings/integration?pkg&#x3D;@supabase/supabase-js&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: # 'snyk:metadata:{"breakingChangeRiskLevel":"low","FF_showPullRequestBreakingChanges":true,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"@supabase/supabase-js","from":"2.116.0","to":"2.117.1"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"b8dd89c6-773e-44a3-bd6f-b8f49f21b3c3","prPublicId":"b8dd89c6-773e-44a3-bd6f-b8f49f21b3c3","packageManager":"npm","priorityScoreList":[],"projectPublicId":"e1f199d3-0a16-4ac7-a9a1-528e774fc41f","projectUrl":"https://app.eu.snyk.io/org/antigravity-awesome-skills-default/project/e1f199d3-0a16-4ac7-a9a1-528e774fc41f?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":5,"publishedDate":"2026-09-23T09:35:44.476Z"},"vulns":[]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth-js Related to the auth-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auth-js: INITIAL_SESSION logs AuthRefreshDiscardedError for successful concurrent sign-out

3 participants