-
Notifications
You must be signed in to change notification settings - Fork 2
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
Free the business code from the token argument. #7
base: main
Are you sure you want to change the base?
Conversation
it will probably breaks moffics.py too |
Seems good, but just to be safe, maybe add a before_request method that resets session token, as it's the same session object in every http query something like : (i dont know how to add suggested patch on pr… :/ )
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pylint review
moffi_sdk/auth.py
Outdated
|
||
Raise AuthenticationException in case of error | ||
""" | ||
TOKEN: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moffi_sdk/auth.py:37:8: C0103: Attribute name "TOKEN" doesn't conform to snake_case naming style (invalid-name)
The best way would be to authenticate and create the session on server start and actually use the same token right? |
probably not, for 2 reasons
I suggest to re-signing on every request |
The |
Simplify the code in order to introduce new features.