diff --git a/jobposting/views.py b/jobposting/views.py index 30d23e3..691837a 100644 --- a/jobposting/views.py +++ b/jobposting/views.py @@ -99,10 +99,10 @@ class GetAuthTokenView(APIView): client_secret = settings.REACT_CLIENT_SECRET print("GET SECRET") credential = "{0}:{1}".format(client_id, client_secret) - base64.b64encode(credential.encode("utf-8")) + credential_b = base64.b64encode(credential.encode("utf-8")) headers = { - "Authorization": f"Basic {credential}", + "Authorization": f"Basic {credential_b}", "Cache-Control": "no-cache", "Content-Type": "application/x-www-form-urlencoded" }