Done via literally just reading it in from localstorage on a request from react-refetch, and adding it manually into the x-csrf-token header. That way when you're using react-refetch you don't even need to be aware of the fact you're using csrf tokens.
Done via literally just reading it in from localstorage on a request from
react-refetch
, and adding it manually into thex-csrf-token
header. That way when you're usingreact-refetch
you don't even need to be aware of the fact you're using csrf tokens.