From 327f14c83999a0b7646382cef2a2b91cede07d0f Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 8 Jan 2024 20:07:03 +0530 Subject: [PATCH] Handle local dev as well --- fyle_rest_auth/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fyle_rest_auth/helpers.py b/fyle_rest_auth/helpers.py index 1024e91..185a17d 100644 --- a/fyle_rest_auth/helpers.py +++ b/fyle_rest_auth/helpers.py @@ -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,