@supabase/gotrue-js 2.108.1-canary.1 → 2.108.1

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/gotrue-js",
3
- "version": "2.108.1-canary.1",
3
+ "version": "2.108.1",
4
4
  "private": false,
5
5
  "description": "Official SDK for Supabase Auth",
6
6
  "keywords": [
@@ -535,9 +535,20 @@ export default class GoTrueClient {
535
535
  }
536
536
 
537
537
  /**
538
- * Initializes the client session either from the url or from storage.
539
- * This method is automatically called when instantiating the client, but should also be called
540
- * manually when checking for an error from an auth redirect (oauth, magiclink, password recovery, etc).
538
+ * Initialize the auth client by loading the session from storage or
539
+ * detecting it from the URL after an OAuth, magic-link, or password-recovery
540
+ * redirect.
541
+ *
542
+ * **Most callers do not need to invoke this directly.** The client calls it
543
+ * automatically during construction, and to react to sign-in events (including
544
+ * post-redirect events) you should subscribe to `onAuthStateChange` rather
545
+ * than awaiting `initialize()`.
546
+ *
547
+ * You only need to call it manually when you have opted out of the automatic
548
+ * call by passing `skipAutoInitialize: true` — for example, in an SSR context
549
+ * where you need to control initialization timing. In that case, awaiting
550
+ * `initialize()` returns the resolved session result (or any error encountered
551
+ * while detecting it from the URL).
541
552
  *
542
553
  * @category Auth
543
554
  */
@@ -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.108.1-canary.1'
7
+ export const version = '2.108.1'