js-bao-wss-client / EnableOfflineAccessOptions
Interface: EnableOfflineAccessOptions
Options for JsBaoClient.enableOfflineAccess.
Properties
allowPinFallback?
optionalallowPinFallback?:boolean
If true, falls back to PIN-based offline access when passkey largeBlob is unavailable.
pinProvider?
optionalpinProvider?: () =>Promise<string>
Async function that prompts the user for a PIN and returns it.
Returns
Promise<string>
preferBiometric?
optionalpreferBiometric?:boolean
If true, attempts passkey-based largeBlob storage before falling back to PIN.
retention?
optionalretention?:object
Controls whether offline data survives sign-out.
preserveOnSignOut?
optionalpreserveOnSignOut?:boolean
If true, keeps offline data when the user logs out.
ttlDays?
optionalttlDays?:number
Number of days the offline grant remains valid before requiring online re-authentication.