Skip to main content

load_or_create_token

Function load_or_create_token 

Source
pub fn load_or_create_token() -> Result<String>
Expand description

Load the bearer token, generating and persisting one on first run.

APOLLO_HTTP_TOKEN wins when set, so a supervisor can inject the same value into the server and its clients without touching disk.