Skip to content

Commit

Permalink
edit redirect to home
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdwns414 committed Aug 17, 2023
1 parent 0ccba30 commit 409c0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def google_callback(request):
# "access_token": access_token,
# "refresh_token": str(refresh),
# }
response = redirect("/")
response = redirect(settings.BASE_URL)
response.set_cookie(
"access_token", access_token, max_age=60 * 60 * 24 * 14, httponly=True
)
Expand Down Expand Up @@ -209,7 +209,7 @@ def kakao_callback(request):
# "access_token": access_token,
# "refresh_token": str(refresh),
# }
response = redirect("/")
response = redirect(settings.BASE_URL)
response.set_cookie(
"access_token", access_token, max_age=60 * 60 * 24 * 14, httponly=True
)
Expand Down

0 comments on commit 409c0ba

Please sign in to comment.