I’m able to authenticate with Redwood GraphQL Playground by passing {"auth-provider": "<provider>", "authorization": "Bearer <token>"}
as HTTP Headers, but I have to copy/paste these headers every time I restart the Playground. Does anyone know of a good way to persist these headers between restarts of the playground?
I can think of 3 possible approaches:
- (Ideal) If I’m already logged into the app, then automatically generate these two HTTP Headers, based upon the data in Local Storage for the
currentUser
- Generate the HTTP Headers based upon an environment variable or a config file
- Simply persist the HTTP Headers between restarts (I believe GraphiQL does this)