import { COOKIE_SESSION_SIGN_IN } from '../../utils/constants';
import { encryptDataSync } from '../../helpers/helpers';
import { getSession, setSession } from './sessionStore';
import { saveLocalStorage } from './save-local-storage';
export default async function saveCookiesClient({ 
//@ts-ignore
remember = true, value, }) {
    // update data session
    const current = getSession() || {};
    const newSession = { ...current, ...value };
    setSession(newSession);
    const encrypted = encryptDataSync(newSession);
    saveLocalStorage({
        key: COOKIE_SESSION_SIGN_IN,
        value: encrypted,
    });
}
//# sourceMappingURL=saveCookiesClient.js.map