Skip to main content
ctx.auth (PluginAuthAccessor) gives read-only access to the current authentication state.
const isAuth = await ctx.auth.isAuthenticated();
const token = await ctx.auth.getToken(); // string | null
When to use it: to check whether a pilot is signed in before doing work. For HTTP calls to the VA, don’t build requests from getToken() by hand — prefer ctx.airline.createClient(), which adds refresh-on-401 handling that ctx.auth does not.