In-App UI
JavaScript
Types
AuthenticateOptions

AuthenticateOptions

Options to pass through to the authenticate method.

Properties

#
onUserTokenExpiring(oldToken: string) => Promise<string | void>
A callback to provide that will fire before a user Token expires. By default will fire 30s before the token is set to expire. If a string is returned from the resolved promise, that will be used as the new user token.
timeBeforeExpirationInMsnumber
Determines the amount of time in milliseconds before the token expires that the callback should be fired.