In-App UI
React
Types
KnockOptions
KnockOptions
Configuration options for initializing the Knock client instance.
Properties#
hoststring
Optional custom API host for Knock. Defaults to the standard Knock API endpoint.logLevelstring
Optional logging level for debugging. Can be 'debug', 'info', 'warn', or 'error'.onUserTokenExpiringfunction
Optional callback function that fires before a user token expires.timeBeforeExpirationInMsnumber
Optional time in milliseconds before token expiration to trigger the callback. Default: 30000 (30 seconds).