-
-
Save cardoso/95d575afba5ad51401d3a6805f2bdb3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(email && name) { | |
const streamId = Buffer.from(email).toString('base64').replace(/=/g, '@'); | |
const userData = {streamId, email, name} | |
await storage.set(appleUid, userData); | |
console.log(`[INFO] User registered with email: ${email}. Derived streamId: ${streamId}`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment