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