degubowanie
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2024-01-22 22:56:22 +01:00
parent 50d26ba2d0
commit b5987004ed

View File

@ -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"
}