cookie
parent
6a331cde8f
commit
f5509b573a
|
@ -38,11 +38,11 @@ export default function StoreCalendar() {
|
|||
<h1>{t("calendar.pageTitle")}</h1>
|
||||
|
||||
<Button
|
||||
href={`${Constants.API_ADDRESS}/calendar/auth/google`}
|
||||
//href={`${Constants.API_ADDRESS}/calendar/auth/google`}
|
||||
onClick={() => {
|
||||
const date = new Date();
|
||||
|
||||
date.setTime(date.getTime() + 5 * 60 * 1000);
|
||||
date.setTime(date.getTime() + 5 * 60 * 1000); // 5 minutes
|
||||
|
||||
document.cookie = `session=${getUserSessionFromLocalStorage()}; expires=${date.toUTCString()}; domain=${
|
||||
window.location.hostname
|
||||
|
|
Loading…
Reference in New Issue