Skip to content

Commit

Permalink
use different key and path for integrations settings api (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Feb 23, 2024
1 parent 3a8c1e8 commit bc68367
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions fyle_rest_auth/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ def validate_refresh_token_and_login(request):
employee_info['data']['org']['id'], tokens['refresh_token']
)

if 'async_update_user_settings_api' in settings.FYLE_REST_AUTH_SETTINGS \
and settings.FYLE_REST_AUTH_SETTINGS['async_update_user_settings_api']:
async_task(
'apps.orgs.tasks.async_update_fyle_credentials',
employee_info['data']['org']['id'], tokens['refresh_token']
)

return tokens

except ValidationError as error:
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.0',
version='1.7.1',
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 bc68367

Please sign in to comment.