From 3026d312b2a8d1404a49cf466058f6e790ac3f4e Mon Sep 17 00:00:00 2001 From: Ashley Smith Date: Wed, 28 Aug 2024 15:27:24 -0600 Subject: [PATCH] remove error cannot set identity before init --- src/sdkBase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdkBase.ts b/src/sdkBase.ts index c106a10..4306dfd 100644 --- a/src/sdkBase.ts +++ b/src/sdkBase.ts @@ -85,7 +85,7 @@ export abstract class SdkBase { public async setIdentityFromEmail(email: string, opts: ClientSideIdentityOptions) { this._logger.log('Sending request', email); - this.throwIfInitNotComplete('Cannot set identity before calling init.'); + //this.throwIfInitNotComplete('Cannot set identity before calling init.'); isClientSideIdentityOptionsOrThrow(opts, this._product.name); const normalizedEmail = normalizeEmail(email); @@ -98,7 +98,7 @@ export abstract class SdkBase { } public async setIdentityFromEmailHash(emailHash: string, opts: ClientSideIdentityOptions) { - this.throwIfInitNotComplete('Cannot set identity before calling init.'); + //this.throwIfInitNotComplete('Cannot set identity before calling init.'); isClientSideIdentityOptionsOrThrow(opts, this._product.name); if (!isBase64Hash(emailHash)) {