@@ -22,11 +22,7 @@ import { Auth, User } from '../../../src/model/public_types';
22
22
import { getAuth , connectAuthEmulator } from '../../../' ; // Use browser OR node dist entrypoint depending on test env.
23
23
import { _generateEventId } from '../../../src/core/util/event_id' ;
24
24
import { getAppConfig , getEmulatorUrl } from './settings' ;
25
- import {
26
- getOobCodes ,
27
- OobCodeSession ,
28
- resetEmulator
29
- } from './emulator_rest_helpers' ;
25
+ import { resetEmulator } from './emulator_rest_helpers' ;
30
26
import totp from 'totp-generator' ;
31
27
interface IntegrationTestAuth extends Auth {
32
28
cleanUp ( ) : Promise < void > ;
@@ -82,15 +78,9 @@ export function getTestInstance(requireEmulator = false): Auth {
82
78
return auth ;
83
79
}
84
80
85
- export async function cleanUpTestInstance (
86
- auth : Auth ,
87
- tests ?: string
88
- ) : Promise < void > {
81
+ export async function cleanUpTestInstance ( auth : Auth ) : Promise < void > {
89
82
await auth . signOut ( ) ;
90
-
91
- if ( typeof tests === 'undefined' ) {
92
- await ( auth as IntegrationTestAuth ) . cleanUp ( ) ;
93
- }
83
+ await ( auth as IntegrationTestAuth ) . cleanUp ( ) ;
94
84
}
95
85
96
86
function stubConsoleToSilenceEmulatorWarnings ( ) : sinon . SinonStub {
@@ -106,11 +96,6 @@ function stubConsoleToSilenceEmulatorWarnings(): sinon.SinonStub {
106
96
} ) ;
107
97
}
108
98
109
- export async function code ( toEmail : string ) : Promise < OobCodeSession > {
110
- const codes = await getOobCodes ( ) ;
111
- return codes . reverse ( ) . find ( ( { email } ) => email === toEmail ) ! ;
112
- }
113
-
114
99
export function getTotpCode (
115
100
sharedSecretKey : string ,
116
101
periodSec : number ,
0 commit comments