Skip to content

Commit 0401a72

Browse files
committed
fix: add assertion around sessiontokenpollmode deprecation [#263]
1 parent 512395f commit 0401a72

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/clerk_auth/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.13-beta
2+
3+
* change: session token polling now defaults to ON (previous versions had it defaulting to OFF)
4+
15
## 0.0.12-beta
26

37
* fix: ensure decoding of UserPublic.identifier is optional [#256]

packages/clerk_auth/lib/src/clerk_auth/auth_config.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ class AuthConfig {
2929
Duration? clientRefreshPeriod,
3030
Duration? httpConnectionTimeout,
3131
HttpService? httpService,
32-
}) : localesLookup = localesLookup ?? Auth.defaultLocalesLookup,
32+
}) : assert(
33+
sessionTokenPollMode == null,
34+
'sessionTokenPollMode has been deprecated: please use sessionTokenPolling',
35+
),
36+
localesLookup = localesLookup ?? Auth.defaultLocalesLookup,
3337
isTestMode = isTestMode ?? false,
3438
telemetryEndpoint =
3539
telemetryEndpoint ?? 'https://clerk-telemetry.com/v1/event',

0 commit comments

Comments
 (0)