@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.mjs CHANGED
@@ -2982,7 +2982,8 @@ function loadKeypairFromEnv() {
2982
2982
  async function createSession() {
2983
2983
  const kp = loadKeypairFromEnv();
2984
2984
  const address = kp.publicKey.toBase58();
2985
- const message = await genSolanaMessage(address);
2985
+ const nonce = await genAuthNonce();
2986
+ const message = await genSolanaMessage(address, nonce);
2986
2987
  /* sign the message */
2987
2988
  const sigBytes = nacl.sign.detached(new TextEncoder().encode(message), kp.secretKey);
2988
2989
  const signature = bufferExports.Buffer.from(sigBytes).toString("base64");