Proper auth
This commit is contained in:
@@ -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);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user