@pooflabs/core 0.0.10 → 0.0.11

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.
package/dist/index.js CHANGED
@@ -3002,7 +3002,8 @@ function loadKeypairFromEnv() {
3002
3002
  async function createSession() {
3003
3003
  const kp = loadKeypairFromEnv();
3004
3004
  const address = kp.publicKey.toBase58();
3005
- const message = await genSolanaMessage(address);
3005
+ const nonce = await genAuthNonce();
3006
+ const message = await genSolanaMessage(address, nonce);
3006
3007
  /* sign the message */
3007
3008
  const sigBytes = nacl.sign.detached(new TextEncoder().encode(message), kp.secretKey);
3008
3009
  const signature = bufferExports.Buffer.from(sigBytes).toString("base64");