Return the global instance of `AuthManager`. Raises: RuntimeError if the clobal instance is not set.
()
| 34 | |
| 35 | |
| 36 | def get_auth_manager() -> AuthManager: |
| 37 | """ |
| 38 | Return the global instance of `AuthManager`. |
| 39 | |
| 40 | Raises: |
| 41 | RuntimeError if the clobal instance is not set. |
| 42 | """ |
| 43 | global _auth_manager |
| 44 | if _auth_manager is None: |
| 45 | raise RuntimeError( |
| 46 | "AuthManager is not initialized. Call 'set_auth_manager' first." |
| 47 | ) |
| 48 | return _auth_manager |
| 49 | |
| 50 | |
| 51 | def set_auth_manager(auth_manager: AuthManager): |
no outgoing calls
no test coverage detected