Issue
I am building a flask app that creates user accounts in firebase auth
using pyrebase
.
@app.route('/verify_email')
def verify_email(self):
end = time.time()
start = self.start
if end-start > 1800:
# delete user
else:
return render_template('email_verification.html')
here I am deleting any user that doesn't verify email under 30 minutes.
Solution
I found this in an older version of the README:
auth = firebase.auth()
user = auth.sign_in_with_email_and_password(email, password)
auth.delete_user_account(user['idToken'])
Answered By - Nathan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.