Check Cookie Validity on Push/Pull Replication - Custom Auth -

Hello,

I would like to know if there is an easy way to “monitor” if the expiration date i use in a “setCookie” method is not overdue ?

I build the replicator this way, in another thread of the MainActivity :smile:

pullReplication.setCookie(cookieName, cookieValue, “/”, MainActivity.expireDateCookie, isSecure, httpOnly);
pushReplication.setCookie(cookieName, cookieValue, “/”, MainActivity.expireDateCookie, isSecure, httpOnly);

MainActivity.expireDateCookie is a “Date” Object.

Best Regards,