updated authentication for welsh url
This commit is contained in:
@@ -26,7 +26,9 @@ const TimeOut = (props) => {
|
||||
destroyCookie(null, "next-auth.callback-url", { path: "/" }),
|
||||
destroyCookie(null, "pedw_locale", { path: "/" }),
|
||||
destroyCookie(null, "pinsUser", { path: "/" }),
|
||||
signOut({ callbackUrl: "/logout" });
|
||||
signOut({
|
||||
callbackUrl: locale == "cy" ? "/cy/allgofnodi" : "/logout",
|
||||
});
|
||||
setOpen(false);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user