(self, email: str)
| 16 | self._app_id = app_id |
| 17 | |
| 18 | def send_magic_code(self, email: str) -> str: |
| 19 | result = self._http.post( |
| 20 | "/admin/send_magic_code", |
| 21 | params={"app_id": self._app_id}, |
| 22 | json={"email": email}, |
| 23 | ) |
| 24 | return result["code"] |
| 25 | |
| 26 | def generate_magic_code(self, email: str) -> str: |
| 27 | result = self._http.post( |