Integrate Beehiiv email verification in onboarding flow #13

Merged
nabarun merged 5 commits from deep-stack/testnet-onboarding-app:sk-beehiiv-integration into main 2024-08-08 10:06:35 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit a63bbdd1c3 - Show all commits

View File

@ -38,9 +38,8 @@ const Thanks: React.FC = () => {
throw new Error("Token has expired");
}
const uuidBuffer = Buffer.from(decoded.subscriber_id.replace(/-/g, ''), 'hex');
const subscriberIdHash = ethers.utils.sha256(uuidBuffer);
const subscriberIdBytes = ethers.utils.toUtf8Bytes(decoded.subscriber_id)
const subscriberIdHash = ethers.utils.sha256(subscriberIdBytes);
navigate('/connect-wallet', {
state:{