useSessionList()
The useSessionList()
hook returns an array of Session
objects that have been registered on the client device.
Returns
- Name
isLoaded
- Type
boolean
- Description
- Name
setActive()
- Type
(params: SetActiveParams) => Promise<void>
- Description
A function that sets the active session and/or organization.
- Name
sessions
- Type
Session[]
- Description
A list of sessions that have been registered on the client device.
How to use the useSessionList()
hook
Get a list of sessions
The following example uses useSessionList()
to get a list of sessions that have been registered on the client device. The sessions
property is used to show the number of times the user has visited the page.
Feedback
Last updated on