@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/dist/main/GoTrueClient.d.ts +14 -3
- package/dist/main/GoTrueClient.d.ts.map +1 -1
- package/dist/main/GoTrueClient.js +14 -3
- package/dist/main/GoTrueClient.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.d.ts.map +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/lib/version.js.map +1 -1
- package/dist/module/GoTrueClient.d.ts +14 -3
- package/dist/module/GoTrueClient.d.ts.map +1 -1
- package/dist/module/GoTrueClient.js +14 -3
- package/dist/module/GoTrueClient.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.d.ts.map +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/lib/version.js.map +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/GoTrueClient.ts +14 -3
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
package/src/GoTrueClient.ts
CHANGED
|
@@ -535,9 +535,20 @@ export default class GoTrueClient {
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
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
|
*/
|
package/src/lib/version.ts
CHANGED
|
@@ -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
|
|
7
|
+
export const version = '2.108.1'
|