Merge branch 'develop' into 'main'
Add browser fingerprint to auth check See merge request digiresilience/link/link-stack!11
This commit is contained in:
commit
8148de30c2
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
|
||||||
if (status === "authenticated") {
|
if (status === "authenticated") {
|
||||||
const response = await fetch("/api/v1/users/me", {
|
const response = await fetch("/api/v1/users/me", {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
headers: {
|
||||||
|
"X-Browser-Fingerprint": `${session.expires}`,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.status !== 200) {
|
if (response.status !== 200) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue