Open porcellus opened 9 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.
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.
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