Skip to main content

authorize

Function authorize 

Source
pub fn authorize(request: Request) -> Request
Expand description

request with this seat’s token as a bearer header. A caller that speaks to the writer outside PacksetClient wraps its request in this.

The token stays home when another user’s process holds the writer’s loopback port: anyone can answer /health with packsetd ok, and a listener that got there first would otherwise collect the token.