Integrate Beehiiv email verification in onboarding flow #13
@ -21,7 +21,7 @@ const Email = () => {
|
||||
|
||||
>
|
||||
<Typography variant="h4" component="h1" gutterBottom>
|
||||
Thank you for registering!
|
||||
Thank you for registering!
|
||||
</Typography>
|
||||
<Typography variant="body1">
|
||||
{REDIRECT_EMAIL_MSG}
|
||||
|
@ -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:{
|
||||
|
Loading…
Reference in New Issue
Block a user