Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how fake emails are generated #477

Open
porcellus opened this issue Feb 29, 2024 · 2 comments
Open

Update how fake emails are generated #477

porcellus opened this issue Feb 29, 2024 · 2 comments

Comments

@porcellus
Copy link
Collaborator

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

@mavwolverine
Copy link

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants