Whether to automatically try to extend active sessions up to the max time a token is valid. Default is true.
Types provided by @broadleaf/commerce-shared-react
.
extends AuthProviderProps
The AppAuthProvider will supply defaults for redirectUri
, silentRedirectUri
, onRedirectCallback
.
It also sets credentials
to true.
Property | Type | Description |
---|---|---|
|
|
Property | Type | Description |
---|---|---|
|
|
|
|
|
Whether to automatically try to extend active sessions up to the max time a token is valid. Default is true. |
|
|
The interval at which to check if the session should be extended. Default is 10.
|
|
|
Actions to perform during logout like clearing caches. |
|
|
The URL to return to after log out. Default is |
Response from the auth server for a request to resolve the authorized client for a given application token.
This is used to determine the clientId and serverId to use for the client in subsequent API requests.
This is used when clientDiscoveryMode
is set to dynamic
.
Property | Type | Description |
---|---|---|
|
|
ID of the Authorized Client |
|
|
ID of the parent Authorization Server |
Defines the options used to build the key when registering a Client. This is similar to ClientOptions used to configure a new client, but excludes some options that would make the hit rate too low like PreviewOptions, which has a unique token for each session.
Property | Type | Description |
---|---|---|
|
|
Application token to be used for this specific operation. |
|
|
Base URL for the axios client. |
|
|
Concatenated with the |
|
|
Concatenated with the |
|
|
The current locale for the operation. This value will be added as an
|
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
The locale without the region, e.g, |
|
|
Property | Type | Description |
---|---|---|
|
|
Cached locale cookie value. |
|
|
The name of the locale cookie. Default is |
|
|
The max age for the locale cookie. Default value is 3600 seconds. |
|
|
The default locale to use for the application. Default value is |
|
|
Method to use to get query parameters from the URL. Defaults to using the Location API. This is used to get the locale from a query parameter. The name should be the same as |
|
|
Callback to set the locale cookie’s value instead of the default method. |
Property | Type | Description |
---|---|---|
|
|
Contains browser Location information. This is useful to get Location information regardless of whether server side or client side rendering is ongoing or whether reverse proxy is fronting the app.
Property | Type | Description |
---|---|---|
|
|
The hostname of the URL. |
|
|
The origin portion of the URL. |
|
|
The path portion of the URL. |
|
|
The protocol portions of the URL. |
|
|
The query string portion of the URL. |
|
|
The full URL. |
|
|
The user-agent string for the current browser. |
extends LocationStateOptions
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
If using a reverse proxy in front of the app, then this is the name of the forwarded host header.
Defaults to |
|
|
Whether to strip the port from the hostname. |
Property | Type | Description |
---|---|---|
|
|
|
|
|
Additional custom messages |
Property | Type | Description |
---|---|---|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
Additional custom messages |
Property | Type | Description |
---|---|---|
|
|
Change event handler for when a new date is picked. |
|
|
The current ISO8601 date string to preview. |
|
|
extends PreviewCountdownMessages, PreviewDatePickerMessages
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Additional custom messages |
extends PreviewHeaderMessages
Property | Type | Description |
---|---|---|
|
|
Additional custom messages |
Query params used to initiate Preview-on-Site functionality. This should exist when redirecting from the Admin.
Property | Type | Description |
---|---|---|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
Colors of the active sandbox selected |
|
|
Change handler that triggers when the user selects a sandbox. |
|
|
The set of available sandboxes to choose from. |
|
|
The currently active sandbox. |
Property | Type | Description |
---|---|---|
|
|
Colors of the active sandbox selected |
|
|
Whether or not this item is the active item |
|
|
Click handler triggered when this item is clicked by a user |
|
|
The sandbox used for rendering the content of this item |
Property | Type | Description |
---|---|---|
|
|
whether or not preview is active, i.e. if a preview token is present |
|
|
whether or not the preview token has been validated |
|
|
whether or not the preview token is being validated |
|
|
the token string to be used in API requests |
|
|
the author whose changes are being previewed |
|
|
the current user sandbox ID |
|
|
the table of user sandboxes |
|
|
ISO8601 date-time used to preview data at a future date |
|
|
ISO8601 date-time used to indicate when the token expires |
|
|
an error message if a failure to validate |
|
|
Whether the app needs to be reloaded because so that down-stream requests account for preview options change. |
extends ButtonTypeProps
Property | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Property | Type | Description |
---|---|---|
|
|
The background sandbox colors |
|
|
The text sandbox colors |