@buildbase/sdk 0.0.73 → 0.0.74

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/CHANGELOG.md CHANGED
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.0.74] - 2026-09-28
11
+
12
+ ### Fixed
13
+
14
+ - **A signed-out browser no longer keeps authenticating as the previous user.**
15
+ `getAuthHeaders()` reads the stored session id on every request and has no
16
+ view of React auth state, so when hydration decided nobody was signed in the
17
+ id stayed in storage and kept riding on SDK calls. Both give-up branches now
18
+ clear it: the one where your `getSession` returns nothing, and the one where
19
+ the id it returned does not resolve to a profile.
20
+
21
+ This matters most where the app's cookie is shorter-lived than the BuildBase
22
+ session behind it - the Next.js starter sets a 7 day cookie against a 30 day
23
+ session, so the window opens once a month by design. In it the app renders
24
+ signed out while the SDK still authenticates as whoever was last signed in,
25
+ which on a shared browser is one person's session in the next person's tab.
26
+
27
+ `signOut` already did this; these paths did not.
28
+
29
+ Known limit: the id is read per request, so calls issued before hydration
30
+ resolves still carry it. Against the starter that is three org-scoped public
31
+ endpoints (`plans`, `credit-packages`, `settings`) which return the same bytes
32
+ to everyone; no authenticated request carries it. Closing that window needs
33
+ requests gated on hydration, which is a behaviour change for every consumer.
34
+
10
35
  ## [0.0.73] - 2026-09-28
11
36
 
12
37
  ### Added