This commit is contained in:
@@ -99,7 +99,7 @@ class GetAuthTokenView(APIView):
|
||||
client_secret = settings.REACT_CLIENT_SECRET
|
||||
print("GET SECRET")
|
||||
credential = "{0}:{1}".format(client_id, client_secret)
|
||||
credential_b = base64.b64encode(credential.encode("utf-8"))
|
||||
credential_b = base64.b64encode(credential.encode("utf-8")).decode("utf-8")
|
||||
print(credential_b)
|
||||
headers = {
|
||||
"Authorization": f"Basic {credential_b}",
|
||||
|
||||
Reference in New Issue
Block a user