Skip to content

Commit

Permalink
Handle local dev as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 committed Jan 8, 2024
1 parent bc782c6 commit 327f14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fyle_rest_auth/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_cluster_domain_by_code(request):

tokens = auth.generate_fyle_refresh_token(authorization_code=authorization_code)

cluster_domain = get_cluster_domain(tokens['access_token'], auth.get_origin_address(request))
cluster_domain = 'http://localhost:8002' if settings.DEBUG else get_cluster_domain(tokens['access_token'], auth.get_origin_address(request))

return {
'cluster_domain': cluster_domain,
Expand Down

0 comments on commit 327f14c

Please sign in to comment.