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.