Skip to content

Commit

Permalink
Add csrf ass cookie dependency to reduce renders
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Nov 26, 2020
1 parent 45037b9 commit ce280ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AuthProvider/AuthProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function AuthProvider({ children }) {
const [loggedIn, setLoggedIn] = useState( false );
const [token, setToken] = useState( null );

const [cookies] = useCookies();
const [cookies] = useCookies(["csrf_refresh_token"]);

async function tryRefresh(csrf_refresh_token){
if (csrf_refresh_token === undefined){
Expand Down

0 comments on commit ce280ca

Please sign in to comment.