mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +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
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import {randomInt} from 'node:crypto';
|
||||
import {deleteRecoveryKit} from '@app/api/auth/AuthRecoveryKit';
|
||||
import {revokeAllAuthSessions} from '@app/api/auth/AuthSessionRevocation';
|
||||
import {createMessageID, createUserID, type MessageID, type UserID} from '@app/api/BrandedTypes';
|
||||
import {Config} from '@app/api/Config';
|
||||
@@ -447,6 +448,7 @@ export async function processUserDeletion(
|
||||
revokeAllAuthSessions({users: userRepository, gateway: gatewayService}, userId),
|
||||
userRepository.deleteAllMfaBackupCodes(userId),
|
||||
userRepository.deleteAllWebAuthnCredentials(userId),
|
||||
deleteRecoveryKit(userId),
|
||||
userRepository.deleteAllPushSubscriptions(userId),
|
||||
userRepository.deleteAllRecentMentions(userId),
|
||||
userRepository.deleteAllAuthorizedIps(userId),
|
||||
|
||||
Reference in new issue
Block a user