clear pinsuser id from cookie
This commit is contained in:
@@ -81,26 +81,7 @@ const RegisterComplete = (props) => {
|
||||
</p>
|
||||
|
||||
<p className="govuk-body">
|
||||
<Link
|
||||
href="/"
|
||||
className="govuk-link"
|
||||
// onClick={() => {
|
||||
// console.info(
|
||||
// "////////////\n" +
|
||||
// "logout" +
|
||||
// "\n////////////"
|
||||
// );
|
||||
// window.localStorage.clear(),
|
||||
// destroyCookie(null, "next-auth.csrf-token"),
|
||||
// destroyCookie(
|
||||
// null,
|
||||
// "next-auth.callback-url"
|
||||
// ),
|
||||
// destroyCookie(null, "pedw_locale"),
|
||||
// destroyCookie(null, "pinsUser"),
|
||||
// signOut({ callbackUrl: "/logout" });
|
||||
// }}
|
||||
>
|
||||
<Link href="/" className="govuk-link">
|
||||
{t("account:register-new-account-my-portal-link")}
|
||||
</Link>
|
||||
</p>
|
||||
|
||||
@@ -74,10 +74,10 @@ const Header = (props) => {
|
||||
const handleLogout = () => {
|
||||
console.info("////////////\n" + "logout" + "\n////////////");
|
||||
window.localStorage.clear(),
|
||||
destroyCookie(null, "next-auth.csrf-token"),
|
||||
destroyCookie(null, "next-auth.callback-url"),
|
||||
destroyCookie(null, "pedw_locale"),
|
||||
destroyCookie(null, "pinsUser"),
|
||||
destroyCookie(null, "next-auth.csrf-token", { path: "/" }),
|
||||
destroyCookie(null, "next-auth.callback-url", { path: "/" }),
|
||||
destroyCookie(null, "pedw_locale", { path: "/" }),
|
||||
destroyCookie(null, "pinsUser", { path: "/" }),
|
||||
signOut({ callbackUrl: "/logout" });
|
||||
};
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@ const MyPortal = (props) => {
|
||||
const handleLogout = () => {
|
||||
console.info("////////////\n" + "logout" + "\n////////////");
|
||||
window.localStorage.clear(),
|
||||
destroyCookie(null, "next-auth.csrf-token"),
|
||||
destroyCookie(null, "next-auth.callback-url"),
|
||||
destroyCookie(null, "pedw_locale"),
|
||||
destroyCookie(null, "pinsUser"),
|
||||
destroyCookie(null, "next-auth.csrf-token", { path: "/" }),
|
||||
destroyCookie(null, "next-auth.callback-url", { path: "/" }),
|
||||
destroyCookie(null, "pedw_locale", { path: "/" }),
|
||||
destroyCookie(null, "pinsUser", { path: "/" }),
|
||||
signOut({ callbackUrl: "/logout" });
|
||||
};
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ const TimeOut = (props) => {
|
||||
const handleLogout = () => {
|
||||
console.info("////////////\n" + "logout" + "\n////////////");
|
||||
window.localStorage.clear(),
|
||||
destroyCookie(null, "next-auth.csrf-token"),
|
||||
destroyCookie(null, "next-auth.callback-url"),
|
||||
destroyCookie(null, "pedw_locale"),
|
||||
destroyCookie(null, "pinsUser"),
|
||||
destroyCookie(null, "next-auth.csrf-token", { path: "/" }),
|
||||
destroyCookie(null, "next-auth.callback-url", { path: "/" }),
|
||||
destroyCookie(null, "pedw_locale", { path: "/" }),
|
||||
destroyCookie(null, "pinsUser", { path: "/" }),
|
||||
signOut({ callbackUrl: "/logout" });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user