@@ -609,7 +609,7 @@ describe('AuthController.handleSignup', () => {
609609 } ) ;
610610} ) ;
611611
612- // -- Signup device signals (fingerprint + dfp_telemetry_id ) --
612+ // -- Signup device signal (fingerprint) --
613613
614614describe ( 'AuthController.handleSignup device signals' , ( ) => {
615615 const uniq = ( ) => Math . random ( ) . toString ( 36 ) . slice ( 2 , 10 ) ;
@@ -631,11 +631,10 @@ describe('AuthController.handleSignup device signals', () => {
631631 ( evt ) => ( evt as { username ?: string } ) . username === username ,
632632 ) ;
633633
634- it ( 'forwards fingerprint and dfp_telemetry_id verbatim to validate and success events' , async ( ) => {
634+ it ( 'forwards fingerprint verbatim to validate and success events' , async ( ) => {
635635 const username = `fp_${ uniq ( ) } ` ;
636636 const baseline = heardSignupSuccess . length ;
637637 const fingerprint = 'Fp_abc.123-XYZ' ;
638- const dfpTelemetryId = 'tel_id-456' ;
639638
640639 const seen = await captureValidateEvents ( async ( ) => {
641640 const res = makeRes ( ) ;
@@ -645,7 +644,6 @@ describe('AuthController.handleSignup device signals', () => {
645644 email : `${ username } @test.local` ,
646645 password : 'correct-horse-battery' ,
647646 fingerprint,
648- dfp_telemetry_id : dfpTelemetryId ,
649647 } ) ,
650648 res ,
651649 ) ;
@@ -654,15 +652,14 @@ describe('AuthController.handleSignup device signals', () => {
654652
655653 expect ( seen ) . toHaveLength ( 1 ) ;
656654 expect ( seen [ 0 ] . fingerprint ) . toBe ( fingerprint ) ;
657- expect ( seen [ 0 ] . dfp_telemetry_id ) . toBe ( dfpTelemetryId ) ;
658655
659656 const successes = successEventsFor ( baseline , username ) ;
660657 expect ( successes ) . toHaveLength ( 1 ) ;
661658 expect ( successes [ 0 ] . fingerprint ) . toBe ( fingerprint ) ;
662659 expect ( successes [ 0 ] . is_temp ) . toBe ( false ) ;
663660 } ) ;
664661
665- it ( 'accepts boundary-length values ( 128-char fingerprint, 64-char dfp_telemetry_id) ' , async ( ) => {
662+ it ( 'accepts a boundary-length 128-char fingerprint' , async ( ) => {
666663 const username = `fp_${ uniq ( ) } ` ;
667664 const res = makeRes ( ) ;
668665 await controller . handleSignup (
@@ -671,14 +668,13 @@ describe('AuthController.handleSignup device signals', () => {
671668 email : `${ username } @test.local` ,
672669 password : 'correct-horse-battery' ,
673670 fingerprint : 'f' . repeat ( 128 ) ,
674- dfp_telemetry_id : 'd' . repeat ( 64 ) ,
675671 } ) ,
676672 res ,
677673 ) ;
678674 expect ( isCompleteLoginResponse ( res . body ) ) . toBe ( true ) ;
679675 } ) ;
680676
681- it ( 'defaults both fields to null on the validate event when absent' , async ( ) => {
677+ it ( 'defaults the fingerprint to null on the validate event when absent' , async ( ) => {
682678 const username = `fp_${ uniq ( ) } ` ;
683679 const baseline = heardSignupSuccess . length ;
684680
@@ -699,15 +695,14 @@ describe('AuthController.handleSignup device signals', () => {
699695
700696 expect ( seen ) . toHaveLength ( 1 ) ;
701697 expect ( seen [ 0 ] . fingerprint ) . toBeNull ( ) ;
702- expect ( seen [ 0 ] . dfp_telemetry_id ) . toBeNull ( ) ;
703698
704699 const successes = successEventsFor ( baseline , username ) ;
705700 expect ( successes ) . toHaveLength ( 1 ) ;
706701 expect ( successes [ 0 ] . fingerprint ) . toBeNull ( ) ;
707702 expect ( successes [ 0 ] . is_temp ) . toBe ( false ) ;
708703 } ) ;
709704
710- it ( 'treats empty-string fingerprint and dfp_telemetry_id as absent' , async ( ) => {
705+ it ( 'treats an empty-string fingerprint as absent' , async ( ) => {
711706 const username = `fp_${ uniq ( ) } ` ;
712707
713708 const seen = await captureValidateEvents ( async ( ) => {
@@ -718,7 +713,6 @@ describe('AuthController.handleSignup device signals', () => {
718713 email : `${ username } @test.local` ,
719714 password : 'correct-horse-battery' ,
720715 fingerprint : '' ,
721- dfp_telemetry_id : '' ,
722716 } ) ,
723717 res ,
724718 ) ;
@@ -728,7 +722,6 @@ describe('AuthController.handleSignup device signals', () => {
728722
729723 expect ( seen ) . toHaveLength ( 1 ) ;
730724 expect ( seen [ 0 ] . fingerprint ) . toBeNull ( ) ;
731- expect ( seen [ 0 ] . dfp_telemetry_id ) . toBeNull ( ) ;
732725 } ) ;
733726
734727 it ( 'rejects a non-string fingerprint with 400 and fires no success event' , async ( ) => {
@@ -770,37 +763,6 @@ describe('AuthController.handleSignup device signals', () => {
770763 expect ( heardSignupSuccess . length ) . toBe ( baseline ) ;
771764 } ) ;
772765
773- it ( 'rejects a dfp_telemetry_id longer than 64 characters with 400 and fires no success event' , async ( ) => {
774- const username = `fp_${ uniq ( ) } ` ;
775- const baseline = heardSignupSuccess . length ;
776- await expect (
777- controller . handleSignup (
778- makeReq ( {
779- username,
780- email : `${ username } @test.local` ,
781- password : 'correct-horse-battery' ,
782- dfp_telemetry_id : 'd' . repeat ( 65 ) ,
783- } ) ,
784- makeRes ( ) ,
785- ) ,
786- ) . rejects . toMatchObject ( { statusCode : 400 } ) ;
787- expect ( heardSignupSuccess . length ) . toBe ( baseline ) ;
788- } ) ;
789-
790- it ( 'rejects a non-string dfp_telemetry_id with 400' , async ( ) => {
791- await expect (
792- controller . handleSignup (
793- makeReq ( {
794- username : `fp_${ uniq ( ) } ` ,
795- email : `${ uniq ( ) } @test.local` ,
796- password : 'correct-horse-battery' ,
797- dfp_telemetry_id : { nested : true } ,
798- } ) ,
799- makeRes ( ) ,
800- ) ,
801- ) . rejects . toMatchObject ( { statusCode : 400 } ) ;
802- } ) ;
803-
804766 it ( 'temp-user signup reports is_temp true and carries the fingerprint on the success event' , async ( ) => {
805767 const baseline = heardSignupSuccess . length ;
806768 const res = makeRes ( ) ;
0 commit comments