@sollinked/sdk
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -98,8 +98,9 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
}, [auth, signature, cookies, setCookie]); | ||
const createAccount = useCallback(async (username) => { | ||
if (!auth.address || !auth.message || !signature) { | ||
const createAccount = useCallback(async (username, customSignature) => { | ||
let sigToVerify = customSignature ?? signature; | ||
if (!auth.address || !auth.message || !sigToVerify) { | ||
return; | ||
} | ||
let { address, message } = auth; | ||
let userRes = await account.create({ address, message, signature, username }); | ||
let userRes = await account.create({ address, message, signature: sigToVerify, username }); | ||
if (!userRes || typeof userRes === 'string') { | ||
@@ -269,3 +270,3 @@ return; | ||
if (!res) { | ||
res = await createAccount(auth.address); | ||
res = await createAccount(auth.address, customSignature); | ||
} | ||
@@ -272,0 +273,0 @@ setIsVerifying(false); |
{ | ||
"name": "@sollinked/sdk", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "SDK for Sollinked", | ||
@@ -16,3 +16,3 @@ "main": "./dist/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"publish": "tsc && npm publish" | ||
"deploy": "tsc && npm publish" | ||
}, | ||
@@ -19,0 +19,0 @@ "author": "Kida", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81954
2063