supertokens-python icon indicating copy to clipboard operation
supertokens-python copied to clipboard

Update how fake emails are generated

Open porcellus opened this issue 1 year ago • 2 comments

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

porcellus avatar Feb 29 '24 16:02 porcellus

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.

mavwolverine avatar May 15 '24 19:05 mavwolverine

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.

rishabhpoddar avatar May 16 '24 05:05 rishabhpoddar