@pooflabs/web 0.0.15 → 0.0.16
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.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -12350,7 +12350,8 @@ function loadKeypairFromEnv() {
|
|
|
12350
12350
|
async function createSession() {
|
|
12351
12351
|
const kp = loadKeypairFromEnv();
|
|
12352
12352
|
const address = kp.publicKey.toBase58();
|
|
12353
|
-
const
|
|
12353
|
+
const nonce = await genAuthNonce();
|
|
12354
|
+
const message = await genSolanaMessage(address, nonce);
|
|
12354
12355
|
/* sign the message */
|
|
12355
12356
|
const sigBytes = nacl.sign.detached(new TextEncoder().encode(message), kp.secretKey);
|
|
12356
12357
|
const signature = bufferExports.Buffer.from(sigBytes).toString("base64");
|