#
useSession
Retrieve the current session from the FireflyRuntime
instance.
#
Reference
const session = useSession()
#
Parameters
None
#
Returns
A custom session object.
#
Usage
import { useSession } from "@squide/firefly";
import type { AppSession } from "@sample/shared";
const session = useSession() as AppSession;
const userName = session.userName;