@@ -44,7 +44,6 @@ export class AuthFlow {
4444 | "chooseMethod"
4545 | "setupOrUseExistingPasskey"
4646 | "setupNewPasskey"
47- | "infoPasskey"
4847 | "setupNewIdentity"
4948 > ( "chooseMethod" ) ;
5049 #captcha = $state < {
@@ -57,7 +56,6 @@ export class AuthFlow {
5756 #name = $state < string > ( ) ;
5857 #jwt = $state < string > ( ) ;
5958 #configIssuer = $state < string > ( ) ;
60- abTestGroup : "infoPasskey" | "default" ;
6159
6260 get view ( ) {
6361 return this . #view;
@@ -77,32 +75,22 @@ export class AuthFlow {
7775
7876 constructor ( ) {
7977 this . chooseMethod ( ) ;
80- const isE2E = nonNullish ( canisterConfig . dummy_auth [ 0 ] ?. [ 0 ] ) ;
81- // No A/B test in E2E runs
82- const GROUP_INFO_PERCENTAGE = isE2E ? - 1 : 0.2 ;
83- this . abTestGroup =
84- Math . random ( ) < GROUP_INFO_PERCENTAGE ? "infoPasskey" : "default" ;
8578 }
8679
8780 chooseMethod = ( ) : void => {
88- authenticationV2Funnel . trigger ( AuthenticationV2Events . SelectMethodScreen , {
89- abTestGroup : this . abTestGroup ,
90- } ) ;
81+ authenticationV2Funnel . trigger ( AuthenticationV2Events . SelectMethodScreen ) ;
9182 this . #view = "chooseMethod" ;
9283 } ;
9384
9485 setupOrUseExistingPasskey = ( ) : void => {
9586 authenticationV2Funnel . trigger (
9687 AuthenticationV2Events . ContinueWithPasskeyScreen ,
97- { abTestGroup : this . abTestGroup } ,
9888 ) ;
9989 this . #view = "setupOrUseExistingPasskey" ;
10090 } ;
10191
10292 continueWithExistingPasskey = async ( ) : Promise < bigint > => {
103- authenticationV2Funnel . trigger ( AuthenticationV2Events . UseExistingPasskey , {
104- abTestGroup : this . abTestGroup ,
105- } ) ;
93+ authenticationV2Funnel . trigger ( AuthenticationV2Events . UseExistingPasskey ) ;
10694 const { identity, identityNumber, credentialId } =
10795 await authenticateWithPasskey ( {
10896 canisterId,
@@ -120,31 +108,20 @@ export class AuthFlow {
120108 } ;
121109
122110 setupNewPasskey = ( ) : void => {
123- authenticationV2Funnel . trigger ( AuthenticationV2Events . EnterNameScreen , {
124- abTestGroup : this . abTestGroup ,
125- } ) ;
111+ authenticationV2Funnel . trigger ( AuthenticationV2Events . EnterNameScreen ) ;
126112 this . #view = "setupNewPasskey" ;
127113 } ;
128114
129115 submitNameAndContinue = async (
130116 name : string ,
131- ) : Promise < undefined | { type : "created" ; identityNumber : bigint } > => {
117+ ) : Promise < { type : "created" ; identityNumber : bigint } > => {
132118 this . #name = name ;
133- if ( this . abTestGroup === "infoPasskey" ) {
134- authenticationV2Funnel . trigger ( AuthenticationV2Events . InfoPasskeyScreen , {
135- abTestGroup : this . abTestGroup ,
136- } ) ;
137- this . #view = "infoPasskey" ;
138- return ;
139- } else {
140- return { type : "created" , identityNumber : await this . createPasskey ( ) } ;
141- }
119+ return { type : "created" , identityNumber : await this . createPasskey ( ) } ;
142120 } ;
143121
144122 createPasskey = async ( ) : Promise < bigint > => {
145123 authenticationV2Funnel . trigger (
146124 AuthenticationV2Events . StartWebauthnCreation ,
147- { abTestGroup : this . abTestGroup } ,
148125 ) ;
149126 if ( isNullish ( this . #name) ) {
150127 throw new Error ( "Name is not set" ) ;
@@ -360,9 +337,7 @@ export class AuthFlow {
360337 passkeyIdentity : DiscoverablePasskeyIdentity ,
361338 attempts = 0 ,
362339 ) : Promise < bigint > => {
363- authenticationV2Funnel . trigger ( AuthenticationV2Events . RegisterWithPasskey , {
364- abTestGroup : this . abTestGroup ,
365- } ) ;
340+ authenticationV2Funnel . trigger ( AuthenticationV2Events . RegisterWithPasskey ) ;
366341 const uaParser = loadUAParser ( ) ;
367342 const alias = await inferPasskeyAlias ( {
368343 authenticatorType : passkeyIdentity . getAuthenticatorAttachment ( ) ,
@@ -387,7 +362,6 @@ export class AuthFlow {
387362 . then ( throwCanisterError ) ;
388363 authenticationV2Funnel . trigger (
389364 AuthenticationV2Events . SuccessfulPasskeyRegistration ,
390- { abTestGroup : this . abTestGroup } ,
391365 ) ;
392366 const credentialId = new Uint8Array ( passkeyIdentity . getCredentialId ( ) ! ) ;
393367 const identity = await authenticateWithSession ( {
0 commit comments