Skip to content

Commit 50db630

Browse files
committed
Fixes #901
1 parent 6a974a9 commit 50db630

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

public-gui/src/routes/TiqrAuth.jsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import {useEffect} from "react";
2+
3+
export const TiqrAuth = () => {
4+
5+
useEffect(() => {
6+
const searchParams = new URLSearchParams(window.location.search);
7+
const u = searchParams.get("u");
8+
const s = searchParams.get("s");
9+
const q = searchParams.get("q");
10+
const i = searchParams.get("i");
11+
const v = searchParams.get("v");
12+
13+
if (u && s && q && i && v) {
14+
window.location.href = `eduidauth://${u}@${i}/${s}/${q}/${i}/${v}`;
15+
}
16+
}, []);
17+
18+
19+
}

0 commit comments

Comments
 (0)