get basic results page working

This commit is contained in:
afazio1
2024-04-21 00:21:25 -04:00
parent 4a6aa5faa5
commit 851443f19f
7 changed files with 93 additions and 32 deletions

View File

@@ -0,0 +1,10 @@
import { getSessionCookie } from "../contexts/session";
export const getAuthHeaders = () => {
const token = getSessionCookie();
// const token = localStorage.getItem('authToken');
console.log("Using token for API call:", token);
return {
'Authorization': `Token ${token}`,
'Content-Type': 'application/json'
};
};