I was wondering if you decide to use sessions (typically using cookies) to store the auth token using Absinthe.Plug :before_send
option like in the example here: https://github.com/absinthe-graphql/absinthe_plug/issues/109 if you open yourself up to CSRF attacks on subsequent query/mutation POST requests?
It’s simple enough to store a CSRF token in the page and submit it as a x-csrf-token
header in the query/mutation for validation but not sure if it’s necessary to worry about it. Also not sure exactly how to deal with CSRF token staleness/refresh/reuse issues if needed in multiple queries/mutations on the same page. I could add a request for a new fresh token after every post as part of my GraphQL query but it’s a bit tedious and maybe there’s another better way?