UseSessionOptions
Defined in: packages/react/src/hooks/useSession.ts:44
Properties
Section titled “Properties”expiringSoonThreshold?
Section titled “expiringSoonThreshold?”
optionalexpiringSoonThreshold:number
Defined in: packages/react/src/hooks/useSession.ts:46
Threshold in ms before expiry to consider “expiring soon” (default: 5 minutes)
onExpired()?
Section titled “onExpired()?”
optionalonExpired: () =>void
Defined in: packages/react/src/hooks/useSession.ts:50
Callback when session expires
Returns
Section titled “Returns”void
onExpiringSoon()?
Section titled “onExpiringSoon()?”
optionalonExpiringSoon: () =>void
Defined in: packages/react/src/hooks/useSession.ts:48
Callback when session is about to expire
Returns
Section titled “Returns”void
updateInterval?
Section titled “updateInterval?”
optionalupdateInterval:number
Defined in: packages/react/src/hooks/useSession.ts:52
Update interval in ms (default: 1000)