Skip to content

Commit

Permalink
add parse
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Sep 11, 2024
1 parent dbcfaa2 commit d9ece2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,10 @@ def get_google_token(request, token=None):
print("request.GET", request.GET)
print('request.query_params.get("url", None)', request.query_params.get("url", None))

url = request.query_params.get("url", None)
state = parse_qs(request.query_params.get("state", None))
print("state", state)

url = state.get("url", None)
if url == None:
raise ValidationException("No callback URL specified", slug="no-callback-url")

Expand Down

0 comments on commit d9ece2e

Please sign in to comment.