import { createAuthServiceSessionContext } from '@arcblock/did-connect-react/lib/Session';
import { useContext } from 'react';

const { SessionProvider, SessionContext, SessionConsumer, withSession } = createAuthServiceSessionContext();

export function useSessionContext() {
  return useContext<import('@arcblock/did-connect-react/lib/types').SessionContext>(SessionContext);
}

export { SessionProvider, SessionContext, SessionConsumer, withSession };
