Skip to content

Commit

Permalink
fix(sdk): build
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony23991 committed Feb 7, 2025
1 parent 7b3f3cc commit 0ce5463
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/@justaname.id/sdk/src/lib/justaname/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,15 @@ export class JustaName {

this.checkConfig(sanitizedConfiguration);

const siweConfig = configuration.config
? {
domain: configuration.config.domain,
origin: configuration.config.origin,
}
: undefined;
const siweConfig =
configuration.config &&
configuration.config.domain &&
configuration.config.origin
? {
domain: configuration.config.domain,
origin: configuration.config.origin,
}
: undefined;

const subnameChallenge = new SubnameChallenge({
siweConfig,
Expand Down

0 comments on commit 0ce5463

Please sign in to comment.