Skip to main content

handle_anonymous_token

Function handle_anonymous_token 

Source
pub fn handle_anonymous_token(
    req: &HttpRequest,
    user: Option<AuthUser>,
) -> Option<String>
Expand description

Returns the bearer token only when there is no authenticated user, for the anonymous chatbot-embed path; a logged-in request’s token is never surfaced here.