Skip to main content

token_from_ws_url

Function token_from_ws_url 

Source
pub fn token_from_ws_url(ws_url: &str) -> Option<String>
Expand description

Extract the session auth token from a dev websocket URL’s ?token= query parameter. The tokened URL is the single credential artifact: the server prints it, and every peer parses the token back out to present in Hello.