Add browser fingerprint to auth check

This commit is contained in:
Darren Clarke 2024-09-25 10:04:43 +02:00
parent 27300b2530
commit b21efc2d50

View file

@ -13,6 +13,9 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
if (status === "authenticated") {
const response = await fetch("/api/v1/users/me", {
method: "GET",
headers: {
"X-Browser-Fingerprint": `${session.expires}`,
},
});
if (response.status !== 200) {