Skip to content

Commit

Permalink
Merge pull request #44 from resum-ai/feat/login
Browse files Browse the repository at this point in the history
fix: debugging 위한 print 추가
  • Loading branch information
yjoonjang authored Mar 28, 2024
2 parents a1f6362 + 37c0fd6 commit 0dc992c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
@api_view(["GET"])
@permission_classes([AllowAny])
def kakao_login(request):
print("hi")
return redirect(
f"https://kauth.kakao.com/oauth/authorize?client_id={REST_API_KEY}&redirect_uri={KAKAO_CALLBACK_URI}&response_type=code"
)
Expand All @@ -60,8 +61,8 @@ def kakao_login(request):
@extend_schema(exclude=True)
@permission_classes([AllowAny])
def kakao_callback(request):
if request:
code = request.GET.get("code")
print("kakao callback")
code = request.GET.get("code")
print(f"code: {code}")

# Access Token Request
Expand Down

0 comments on commit 0dc992c

Please sign in to comment.