We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1d45f commit 7cf86b8Copy full SHA for 7cf86b8
1 file changed
yepcode_run/api/yepcode_api.py
@@ -162,11 +162,10 @@ def _get_access_token(self) -> str:
162
"AccessToken has expired. Provide a new one or enable automatic refreshing by providing an apiToken or clientId and clientSecret."
163
)
164
try:
165
+ credentials = f"{self.client_id}:{self.client_secret}"
166
api_token = (
167
self.api_token
- or f"sk-{base64.b64encode(
168
- f"{self.client_id}:{self.client_secret}".encode()
169
- ).decode()}"
+ or f"sk-{base64.b64encode(credentials.encode()).decode()}"
170
171
172
response = requests.post(
0 commit comments