Skip to content

Commit 9634c11

Browse files
authored
Merge pull request #18183 from mozilla/fxa-10880
fix(customs): Don't call customs on the GET /recoveryCodes/exist endpoint
2 parents ff37d0d + 3bd8545 commit 9634c11

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

packages/fxa-auth-server/lib/routes/recovery-codes.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ module.exports = (log, db, config, customs, mailer, glean) => {
143143
async handler(request) {
144144
log.begin('checkRecoveryCodesExist', request);
145145

146-
const { email, uid } = request.auth.credentials;
147-
148-
await customs.check(request, email, 'checkRecoveryCodesExist');
146+
const { uid } = request.auth.credentials;
149147

150148
const { hasBackupCodes, count } =
151149
await backupCodeManager.getCountForUserId(uid);

packages/fxa-customs-server/lib/actions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const ACCOUNT_STATUS_ACTION = {
4242
sendUnblockCode: true,
4343
recoveryKeyExists: true,
4444
getCredentialsStatus: true,
45-
checkRecoveryCodesExist: true,
4645
recoveryPhoneAvailable: true,
4746
};
4847

0 commit comments

Comments
 (0)