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

Add delete_session to delete saved session info #88

Closed
Unusual-Ad opened this issue Mar 4, 2024 · 1 comment · Fixed by #91
Closed

Add delete_session to delete saved session info #88

Unusual-Ad opened this issue Mar 4, 2024 · 1 comment · Fixed by #91
Assignees
Labels
enhancement New feature or request

Comments

@Unusual-Ad
Copy link

For security purposes, should add a delete_session function to the class MonarchMoney to enabling deleting the saved session file.

I'm new to Python/Git, but I think this is probably really straightforward:
def delete_session_file(self,filename: str = SESSION_FILE) -> None:
"""
Deletes Python pickle file of saved session info if it exists.
"""
if os.path.isfile(filename):
os.remove(filename)

@hammem hammem self-assigned this Mar 5, 2024
@hammem hammem linked a pull request Mar 5, 2024 that will close this issue
@hammem hammem added the enhancement New feature or request label Mar 5, 2024
@hammem
Copy link
Owner

hammem commented Mar 9, 2024

This has been added and will go to PyPI on the next release.

@hammem hammem closed this as completed Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants