UNPKG

@documedis-components/prescription-sign

Version:

React component for signing electronic prescriptions with HIN authentication

14 lines (13 loc) 518 B
import { Session } from '../../../../../core/src/session/index.ts'; import { SessionClient } from './client'; type UseSessionOptions = { client: SessionClient; sessionToken?: string; onSessionTokenUpdate?: (sessionToken: string) => void; }; type UseSessionReturn = { getSession: () => Promise<Session | null>; updateSession: (updates: Session) => Promise<void>; }; export declare function useSession({ client, sessionToken, onSessionTokenUpdate, }: UseSessionOptions): UseSessionReturn; export {};