From bc68367efd11b6001c6f407cee83f7a3102c0da6 Mon Sep 17 00:00:00 2001 From: Nilesh Pant <58652823+NileshPant1999@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:21:22 +0530 Subject: [PATCH] use different key and path for integrations settings api (#38) --- fyle_rest_auth/helpers.py | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fyle_rest_auth/helpers.py b/fyle_rest_auth/helpers.py index be2c966..0271b42 100644 --- a/fyle_rest_auth/helpers.py +++ b/fyle_rest_auth/helpers.py @@ -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: diff --git a/setup.py b/setup.py index 809f7a2..a1f861b 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='fyle-rest-auth', - version='1.7.0', + version='1.7.1', author='Shwetabh Kumar', author_email='shwetabh.kumar@fyle.in', description='Django application to implement OAuth 2.0 using Fyle in Django rest framework',