mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(auth): add username sign-in mode and recovery kits (#3215)
This commit is contained in:
1 parent
bf3d73a5f7
commit
e1eecc3b6c
355 files changed
+52138
-24097
No files matched your search
@@ -265,6 +265,13 @@ export const SendPasswordResetRequest = z.object({
|
||||
|
||||
export type SendPasswordResetRequest = z.infer<typeof SendPasswordResetRequest>;
|
||||
|
||||
export const AdminPasswordResetLinkResponse = z.object({
|
||||
url: z.string().describe('Password reset link to hand to the user. It is shown only once'),
|
||||
expires_at: z.iso.datetime().describe('ISO 8601 timestamp when the link stops working'),
|
||||
});
|
||||
|
||||
export type AdminPasswordResetLinkResponse = z.infer<typeof AdminPasswordResetLinkResponse>;
|
||||
|
||||
export const ChangeUsernameRequest = z.object({
|
||||
user_id: SnowflakeType.describe('ID of the user to change username for'),
|
||||
username: UsernameType.describe('New username for the user'),
|
||||
|
||||
Reference in new issue
Block a user