Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

Automatically Authenticate with Preflight Scripts in Apollo Studio Explorer

Blog post from Apollo

Post Details
Company
Date Published
Author
Parul Schroff
Word Count
424
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

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.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.