How to stay logged in when page refreshes with React?
I have a react app for the frontend and I am using django for the backend and I can login. But after page refresh user will be logged out. So I try it like: authservice: export const loginRequest = async (email, password) => { try { const response = await fetch(`${API_URL}/api/user/token/`, { method: “POST”, headers: … Read more