File tree Expand file tree Collapse file tree
packages/fxa-auth-server/lib/routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1267,11 +1267,14 @@ export class AccountHandler {
12671267 // If the request wants keys , user *must* confirm their login session before they can actually
12681268 // use it. Otherwise, they don't *have* to verify their session. All sessions are created
12691269 // unverified because it prevents them from being used for sync.
1270+ // Also require verification if the service is in the servicesWithEmailVerification list.
12701271 let mustVerifySession =
12711272 needsVerificationId &&
12721273 ( verificationForced === 'suspect' ||
12731274 verificationForced === 'global' ||
1274- requestHelper . wantsKeys ( request ) ) ;
1275+ requestHelper . wantsKeys ( request ) ||
1276+ ( service &&
1277+ this . config . servicesWithEmailVerification . includes ( service ) ) ) ;
12751278
12761279 // For accounts with TOTP, we always force verifying a session.
12771280 if ( verificationMethod === 'totp-2fa' ) {
You can’t perform that action at this time.
0 commit comments