We recently introduced Preflight Scripts to Explorer! With preflight scripts you can automatically run any custom authentication before your GraphQL operation is executed. For a graph and variant, you can set up a script in the "Preflight script" section of Apollo Studio Explorer Settings, only available to users with Contributor or Admin roles. You can test and publish your script using the script editor panel, where you can write your preflight script and add environment variables. An example preflight script is provided that refreshes access tokens after a specific period of time. To use this feature effectively, you need to authenticate server outside of Apollo Studio to retrieve token, refresh_token and token_expires_at, add these values as environment variables in Explorer, and write your preflight script to make authentication easy for consumers.