@@ -46,7 +46,6 @@ import {
4646import { WaasAuthenticator , AnswerIncorrectError , Chain , EmailAlreadyInUseError , Session } from './clients/authenticator.gen'
4747import { NoPrivateKeyError } from './errors'
4848import { SimpleNetwork , WithSimpleNetwork } from './networks'
49- import { EmailAuth } from './email'
5049import { ethers } from 'ethers'
5150import { getDefaultSubtleCryptoBackend , SubtleCryptoBackend } from './subtle-crypto'
5251import { getDefaultSecureStoreBackend , SecureStoreBackend } from './secure-store'
@@ -177,8 +176,6 @@ export class SequenceWaaS {
177176
178177 private readonly deviceName : StoreObj < string | undefined >
179178
180- private emailClient : EmailAuth | undefined
181-
182179 // The last Date header value returned by the server, used for users with desynchronised clocks
183180 private lastDate : Date | undefined
184181
@@ -278,23 +275,6 @@ export class SequenceWaaS {
278275 return response
279276 }
280277
281- public get email ( ) {
282- if ( this . emailClient ) {
283- return this . emailClient
284- }
285-
286- if ( ! this . config . emailRegion ) {
287- throw new Error ( 'Missing emailRegion' )
288- }
289-
290- if ( ! this . config . emailClientId ) {
291- throw new Error ( 'Missing emailClientId' )
292- }
293-
294- this . emailClient = new EmailAuth ( this . config . emailRegion , this . config . emailClientId )
295- return this . emailClient
296- }
297-
298278 async onValidationRequired ( callback : ( ) => void ) {
299279 this . validationRequiredCallback . push ( callback )
300280 return ( ) => {
0 commit comments