Get the token of the currently authenticated user to the Enterprise Server. :return: Token, if authenticated. None, otherwise.
()
| 142 | |
| 143 | |
| 144 | def token() -> Optional[str]: |
| 145 | """ |
| 146 | Get the token of the currently authenticated user to the Enterprise Server. |
| 147 | |
| 148 | :return: Token, if authenticated. None, otherwise. |
| 149 | """ |
| 150 | value = core.BNGetEnterpriseServerToken() |
| 151 | if value is None: |
| 152 | raise RuntimeError(last_error()) |
| 153 | return value |
| 154 | |
| 155 | |
| 156 | def server_url() -> str: |
nothing calls this directly
no test coverage detected