Skip to content

Commit

Permalink
Merge pull request #441 from supertokens/fix/django2x-website-tests
Browse files Browse the repository at this point in the history
fix: Failing django2x website tests
  • Loading branch information
rishabhpoddar authored Sep 7, 2023
2 parents 74f2ce4 + 619db35 commit 4de3aa2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/frontendIntegration/django2x/polls/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,11 @@ def login_2_18(request: HttpRequest):
{"uid": user_id, "ate": get_timestamp_ms() + 3600000, "up": payload}
)

return JsonResponse(
{},
headers={
"st-access-token": legacy_access_token,
"st-refresh-token": legacy_refresh_token,
"front-token": b64encode(front_token.encode()).decode(),
},
)
res = JsonResponse({})
res["st-access-token"] = legacy_access_token
res["st-refresh-token"] = legacy_refresh_token
res["front-token"] = b64encode(front_token.encode()).decode()
return res
else:
return send_options_api_response()

Expand Down

0 comments on commit 4de3aa2

Please sign in to comment.