+ );
+}
diff --git a/web/src/lib/api/auth.ts b/web/src/lib/api/auth.ts
new file mode 100644
index 00000000..212e31e7
--- /dev/null
+++ b/web/src/lib/api/auth.ts
@@ -0,0 +1,23 @@
+import { imPost, imRequest } from './client';
+
+export interface VerificationCodeResponse {
+ challenge_id: string;
+ resend_after_seconds: number;
+}
+
+export function requestVerificationCode(scene: 'register' | 'reset_password', phone: string) {
+ return imPost