Skip to content

Commit 84ab222

Browse files
authored
Merge pull request #18 from tinomerl/development
fixed access_token bug
2 parents 2afff57 + 0f4847b commit 84ab222

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apyauth/session.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def generate_access_token(
167167

168168
auth_params: dict = {
169169
"client_id": client_id,
170-
"client_secret": client_secret,
171170
"redirect_uri": redirect_uri,
172171
"state": state,
173172
"response_type": "code",
@@ -185,7 +184,7 @@ def generate_access_token(
185184
}
186185
ans = requests.post(access_token_url, data=data, headers=headers)
187186
status_code = ans.status_code
188-
if status_code == 404:
187+
if status_code != 200:
189188
get_params: dict = {
190189
"client_id": client_id,
191190
"client_secret": client_secret,

0 commit comments

Comments
 (0)