stack/packages/template/src
BilalG1 2af2a591b4
Skip analytics init on apps without persistent token store (#1336)
Owned admin apps are constructed with `tokenStore: null`, which caused
EventTracker/SessionRecorder flushes to throw from
_ensurePersistentTokenStore() after #1331 removed the silencing.

<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved analytics stability and privacy by restricting session
recording and event tracking to environments with required persistent
storage.
* **Tests**
* Adjusted a few end-to-end tests to skip when running against a local
emulator to reduce spurious failures.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-14 09:43:37 -07:00
..
components Turnstile integration for fraud protection (#1239) 2026-03-20 21:26:45 +00:00
components-page feat: add anonRefreshToken to CLI auth flow and enhance session management (#1303) 2026-04-14 02:09:35 +00:00
dev-tool dev tool indicator (#1272) 2026-04-13 17:43:03 -07:00
generated Fix dev-perf-stats 2026-02-04 13:59:31 -08:00
integrations change cli init across docs (#1245) 2026-03-13 10:45:24 -07:00
lib Skip analytics init on apps without persistent token store (#1336) 2026-04-14 09:43:37 -07:00
providers Remove UserFetcher from StackProvider — make dashboard static 2025-10-19 13:44:42 -07:00
utils Add basic client lib tests (#601) 2025-04-03 20:05:44 +02:00
global.css Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
global.d.ts Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
index.ts make config typesafe (#1254) 2026-04-06 18:31:55 +00:00