@supabase/auth-js 2.116.0-canary.0 → 2.116.0-canary.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/auth-js",
3
- "version": "2.116.0-canary.0",
3
+ "version": "2.116.0-canary.2",
4
4
  "private": false,
5
5
  "description": "Official SDK for Supabase Auth",
6
6
  "keywords": [
@@ -4357,6 +4357,12 @@ export default class GoTrueClient {
4357
4357
  } catch (err) {
4358
4358
  await this.stateChangeEmitters.get(id)?.callback('INITIAL_SESSION', null)
4359
4359
  this._debug('INITIAL_SESSION', 'callback id', id, 'error', err)
4360
+ if (isAuthRefreshDiscardedError(err)) {
4361
+ // Same successful no-op _recoverAndRefresh treats as debug-only: the
4362
+ // commit guard discarded a refresh because a concurrent signOut
4363
+ // changed session state mid-flight.
4364
+ return
4365
+ }
4360
4366
  if (
4361
4367
  isAuthSessionMissingError(err) ||
4362
4368
  isAuthRetryableFetchError(err) ||
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.116.0-canary.0'
7
+ export const version = '2.116.0-canary.2'