Documentation Index
Fetch the complete documentation index at: https://iam-docs.platform.ai71services.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
useSession hook is used to access the current session and user details from the SessionContext.Example Usage
session-component.tsx
Returns
current session object.
Session type
function to log out the current user.
details of the currently signed-in user.
UserDetails type
boolean indicating whether the user is signed in.
boolean indicating whether the user details has been fetched.
boolean indicating whether the user details is loading.
boolean indicating whether an error occurred while fetching user details.
error object if an error occurred while fetching user details.