--- title: IsSessionFunction --- # IsSessionFunction [MODES: framework, data] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v8/types/react-router.IsSessionFunction.html) A function that determines whether a value is a React Router [`Session`](https://api.reactrouter.com/v8/interfaces/react-router.Session.html) object. ## Signature ```tsx type IsSessionFunction = (object: any) => object is Session; ``` ## Params ### object The value to check. ## Returns `true` if the value is a React Router [`Session`](https://api.reactrouter.com/v8/interfaces/react-router.Session.html) object; otherwise, `false`.