mindroot.coreplugins.jwt_auth package¶
Submodules¶
mindroot.coreplugins.jwt_auth.middleware module¶
- mindroot.coreplugins.jwt_auth.middleware.is_public_route(request_path: str) bool[source]¶
Check if a request path matches any registered public route pattern.
- mindroot.coreplugins.jwt_auth.middleware.path_matches_pattern(request_path: str, route_pattern: str) bool[source]¶
Check if a request path matches a route pattern with parameters.
Examples: - path_matches_pattern(‘/chat/embed/abc123’, ‘/chat/embed/{token}’) -> True - path_matches_pattern(‘/chat/widget/xyz/session’, ‘/chat/widget/{token}/session’) -> True - path_matches_pattern(‘/login’, ‘/login’) -> True