Hey! Question about hashing - does SuperTokens sup...
# support-questions
c
Hey! Question about hashing - does SuperTokens support storing email address as hash only? I saw the docs about hashing passwords, but not sure if this can be used for email addresses as well. We already implemented passwordless login w/ magic link in our Flask app, but we are looking into only storing hashed email addresses in our db
r
hey @CallStack this is possible. You want to override the all the passwordless recipe functions on the backend (not APIs) to hash the input email before using the original implementation. That being said, this may cause issues for resending the magic link. But if you don't hash the email in createCode, then this should be fine (essentially, you only want to has the email in consumeCode and getUserByEmail functions)
c
I see - so basically copy the passwordless recipe functions into our backend code and manually add the hashing functionality?
r
You don’t need to copy anything through
Though*
You can use our override feature to hash the email before calling the original implementation