迁移后端认证与拆分 Spacetime 客户端
This commit is contained in:
@@ -32,6 +32,26 @@ export type AuthEntryResponse = {
|
||||
user: AuthUser;
|
||||
};
|
||||
|
||||
export type AuthPasswordChangeRequest = {
|
||||
currentPassword?: string;
|
||||
newPassword: string;
|
||||
};
|
||||
|
||||
export type AuthPasswordChangeResponse = {
|
||||
user: AuthUser;
|
||||
};
|
||||
|
||||
export type AuthPasswordResetRequest = {
|
||||
phone: string;
|
||||
code: string;
|
||||
newPassword: string;
|
||||
};
|
||||
|
||||
export type AuthPasswordResetResponse = {
|
||||
token: string;
|
||||
user: AuthUser;
|
||||
};
|
||||
|
||||
export type AuthPhoneSendCodeRequest = {
|
||||
phone: string;
|
||||
scene?: 'login' | 'bind_phone' | 'change_phone';
|
||||
|
||||
Reference in New Issue
Block a user