ClerkAuthConfig class
An extended clerk.AuthConfig
to allow the addition of:
localizations for l10n needs loading widget
- Annotations
Constructors
- ClerkAuthConfig.new({required String publishableKey, SessionTokenPollMode? sessionTokenPollMode, bool? isTestMode, String? telemetryEndpoint, Duration? telemetryPeriod, Duration? clientRefreshPeriod, ClerkSdkLocalizationsCollection? localizations, ClerkSdkLocalizations? fallbackLocalization, Widget? loading = defaultLoadingWidget})
- Construct a ClerkAuthConfig
Properties
- clientRefreshPeriod → Duration
-
The duration between calls to refresh the client object
Default is 9700ms: about 10s, but not exactly on the button to
avoid repeated clashes with other regular tasks
finalinherited
- fallbackLocalization → ClerkSdkLocalizations
-
fallbackLocalization for when a locale cannot be found
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTestMode → bool
-
Are we in test mode?
finalinherited
- loading → Widget?
-
The Widget to display while loading data, override with null
to disable the loading overlay or use your own widget.
final
- localesLookup → LocalesLookup
-
Function to return list of current user's locales for translation
no setter
- localizations → ClerkSdkLocalizationsCollection
-
localizations for translation within the UI
final
- publishableKey → String
-
Key from the Clerk dashboard identifying the auth service account
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionTokenPollMode → SessionTokenPollMode
-
the mode by which session tokens are polled from the back end
finalinherited
- telemetryEndpoint → String
-
The endpoint to hit when sending telemetry data
finalinherited
- telemetryPeriod → Duration
-
The duration between sends of telemetry data
Default is 29300ms: about 30s, but not exactly on the button to
avoid repeated clashes with other regular tasks
finalinherited
Methods
-
localizationsForLocale(
Locale locale) → ClerkSdkLocalizations - Retrieves the localization for the specified local falling back to the fallbackLocalization
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited