Last active
January 6, 2021 15:34
-
-
Save nickfogle/ea69fb0204a4441e8d846c1d523de550 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
const crypto = require("crypto"); | |
const user_hash = crypto.createHmac( | |
"sha256", | |
"CK_SECRET" // API KEY | |
).update(req.user.stripeId).digest("hex"); // Send to front-end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment