Skip to main content

Overview

useSession hook is used to access the current session and user details from the SessionContext.

Example Usage

session-component.tsx

Returns

boolean
boolean indicating whether the user is signed in.
Session | undefined
current session object.
Session type
UserDetails | undefined
details of the currently signed-in user.
UserDetails type