Skip to content

Commit

Permalink
feat: Add few more loggers for debugging (#45)
Browse files Browse the repository at this point in the history
* feat: Add few more loggers for debugging

* feat: Add few more loggers for debugging
  • Loading branch information
ashwin1111 authored Oct 16, 2024
1 parent c67eb85 commit b7aa133
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion fyle_rest_auth/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ def validate_token(access_token_string: str, origin_address: str) -> Dict:
email = cache.get(email_unique_key)
user = cache.get(user_unique_key)

logger.info('email, user unique key, email unique key %s, %s, %s', email, user_unique_key, email_unique_key)
logger.info(
'email, user unique key, email unique key user %s, %s, %s, %s',
email, user_unique_key, email_unique_key, user
)

if not (email and user):
cache.delete_many([email_unique_key, user_unique_key])
try:
employee_info = get_fyle_admin(access_token_string.split(' ')[1], origin_address)
logger.info('employee_info %s', employee_info)
except Exception:
raise AuthenticationFailed('Invalid access token')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='fyle-rest-auth',
version='1.7.3',
version='1.7.4',
author='Shwetabh Kumar',
author_email='[email protected]',
description='Django application to implement OAuth 2.0 using Fyle in Django rest framework',
Expand Down

0 comments on commit b7aa133

Please sign in to comment.