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

use different key and path for integrations settings api #38

Merged
merged 2 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.6.0',
version='1.6.1',
author='Shwetabh Kumar',
author_email='[email protected]',
description='Django application to implement OAuth 2.0 using Fyle in Django rest framework',
Expand Down