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

deleteMe() should reset private variables? #21

Open
lasseklovstad opened this issue Oct 18, 2024 · 0 comments
Open

deleteMe() should reset private variables? #21

lasseklovstad opened this issue Oct 18, 2024 · 0 comments

Comments

@lasseklovstad
Copy link

Hi! After deleting account the token is reused in creating a new random account. Maybe the deleteMe method should reset the this.token?

const mailService = new Mailjs();
await mailService.createOneAccount();
await mailService.deleteMe();
// This call will throw Error: This account no longer exists.
await mailService.createOneAccount();

You could of course create a new Mailjs() instance for the new account, but that is just extra code.

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

1 participant