UNPKG

@oxyhq/services

Version:

Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀

14 lines • 659 B
interface UseSessionSocketProps { userId: string | null | undefined; activeSessionId: string | null | undefined; currentDeviceId: string | null | undefined; refreshSessions: () => Promise<void>; logout: () => Promise<void>; clearSessionState: () => Promise<void>; baseURL: string; onRemoteSignOut?: () => void; onSessionRemoved?: (sessionId: string) => void; } export declare function useSessionSocket({ userId, activeSessionId, currentDeviceId, refreshSessions, logout, clearSessionState, baseURL, onRemoteSignOut, onSessionRemoved }: UseSessionSocketProps): void; export {}; //# sourceMappingURL=useSessionSocket.d.ts.map