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 @@ -178,6 +178,27 @@ module.exports = function (
178178 sessionToken . uid
179179 ) ;
180180
181+ // Start temporary metrics section
182+ if ( ! account ?. primaryEmail ?. isVerified ) {
183+ statsd . increment ( 'session_reauth.primary_email_not_verified' ) ;
184+ }
185+ if (
186+ sessionToken . tokenVerificationId ||
187+ sessionToken . tokenVerified === false
188+ ) {
189+ statsd . increment ( 'session_reauth.token_not_verified' ) ;
190+ }
191+ const accountAmr = await authMethods . availableAuthenticationMethods (
192+ db ,
193+ account
194+ ) ;
195+ const accountAal = authMethods . maximumAssuranceLevel ( accountAmr ) ;
196+ const sessionAal = sessionToken . authenticatorAssuranceLevel ;
197+ if ( accountAal !== sessionAal ) {
198+ statsd . increment ( 'session_reauth.all_not_met' ) ;
199+ }
200+ // End temporary metrics section
201+
181202 await signinUtils . checkEmailAddress (
182203 accountRecord ,
183204 email ,
You can’t perform that action at this time.
0 commit comments