mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-07 11:55:12 -04:00
8 lines
238 B
TypeScript
8 lines
238 B
TypeScript
import { getSessionCookie } from "../contexts/session";
|
|
export const getAuthHeaders = () => {
|
|
const token = getSessionCookie();
|
|
return {
|
|
'Authorization': `Token ${token}`,
|
|
'Content-Type': 'application/json'
|
|
};
|
|
}; |