supertokens / supertokens-python

Python SDK for SuperTokens
https://supertokens.com
Other
122 stars 34 forks source link

Update how fake emails are generated #477

Open porcellus opened 6 months ago

porcellus commented 6 months ago

We are updating how fake emails are generated (and detected), because fakeemail.com is not a domain we are controlling. Related: https://github.com/supertokens/supertokens-node/pull/741/files#diff-b14fb90617b51ab3230266bd4cff0646a932edda9f411eec40598d4016d76b39

virajkanwade commented 4 months ago

It would also be good if user_info_dict and oauth tokens were made available to the fake email function. That way, if I need to create a custom fake email and need to call an API, I can use the tokens.

rishabhpoddar commented 4 months ago

The generate_fake_email function is only meant to generate a fake email randomly. You can instead override the get_user_info function of the provider to return an email in the user info object, and in this function, you have access to the oauth tokens.