passkey-kit 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/base.ts +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passkey-kit",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "A helper library for creating and using passkey accounts on the Stellar blockchain.",
5
5
  "author": "Tyler van der Hoeven",
6
6
  "license": "MIT",
@@ -12,8 +12,8 @@
12
12
  "@stellar/stellar-sdk": "12.1.0",
13
13
  "base64url": "^3.0.1",
14
14
  "buffer": "^6.0.3",
15
- "passkey-factory-sdk": "0.2.1",
16
- "passkey-kit-sdk": "0.2.1"
15
+ "passkey-kit-sdk": "0.2.1",
16
+ "passkey-factory-sdk": "0.2.1"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@simplewebauthn/types": "^10.0.0",
package/src/base.ts CHANGED
@@ -48,9 +48,6 @@ export class PasskeyBase {
48
48
  if (mercuryPassword)
49
49
  this.mercuryPassword = mercuryPassword
50
50
 
51
- if (!mercuryJwt && mercuryUrl && mercuryEmail && mercuryPassword)
52
- this.setMercuryJwt()
53
-
54
51
  if (rpcUrl) {
55
52
  this.rpcUrl = rpcUrl
56
53
  this.rpc = new SorobanRpc.Server(rpcUrl)
@@ -58,7 +55,7 @@ export class PasskeyBase {
58
55
  }
59
56
 
60
57
  public async setMercuryJwt() {
61
- if (!this.mercuryEmail || !this.mercuryPassword)
58
+ if (!this.mercuryUrl || !this.mercuryEmail || !this.mercuryPassword)
62
59
  throw new Error('Mercury service not configured')
63
60
 
64
61
  const { data: { authenticate: { jwtToken } } } = await fetch(`${this.mercuryUrl}/graphql`, {