refactor: remove unused base_url parameter from create_invite and update fallback URL logic

This commit is contained in:
2026-05-12 10:04:35 -05:00
parent 42d7b876d1
commit 831da7b31c
3 changed files with 4 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ def _is_token_issue_message(*values: str | None) -> bool:
has_invalid_marker = any(marker in text for marker in invalid_markers)
has_expired_marker = any(marker in text for marker in expired_markers)
return has_expired_marker or (has_token_context and has_invalid_marker)
return (has_expired_marker and has_token_context) or (has_token_context and has_invalid_marker)
def _extract_company_id(request: Request) -> Optional[int]: