Proper auth

This commit is contained in:
2025-12-28 23:25:27 +01:00
parent 24e37e5244
commit 2b6dbeea4a
3 changed files with 66 additions and 42 deletions
-22
View File
@@ -103,28 +103,6 @@ export default function OverviewPage() {
fetchNodes();
const interval = setInterval(fetchNodes, 3000);
const test = async () => {
const sessionToken = await getSession();
console.log(sessionToken);
// console.log(
// (
// await axios.get("https://api.github.com/user/repos", {
// headers: { Authorization: `Bearer ${sessionToken}` },
// })
// ).data
// );
// console.log(
// (
// await axios.get("https://api.github.com/orgs/orus-dev/repos", {
// headers: { Authorization: `Bearer ${sessionToken}` },
// })
// ).data
// );
};
test();
return () => clearInterval(interval);
}, []);