Skip to content

Commit

Permalink
minor: added FRONT_END_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Parikshit85 committed Dec 4, 2023
1 parent c246ea0 commit d3a5afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/marketplace/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ ACCESS_TOKEN = ""
ACCESS_SECRET = ""
JWT_SECRET = ""
SERVER = "https://127.0.0.1:8000/"
FRONT_END_URL = "http://localhost:3000/"
2 changes: 1 addition & 1 deletion src/api/marketplace/marketplace/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def twitterLoginCallback(request):
existing_user.save()

# Creating a response object with JWT cookie
response = HttpResponseRedirect("http://localhost:3000/")
response = HttpResponseRedirect(config('FRONT_END_URL'))

# Payload for JWT token
payload = {
Expand Down

0 comments on commit d3a5afe

Please sign in to comment.