Skip to content

Commit

Permalink
remove error cannot set identity before init
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Aug 28, 2024
1 parent 1fad72d commit 3026d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdkBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)) {
Expand Down

0 comments on commit 3026d31

Please sign in to comment.