Skip to content

Commit 3bddf98

Browse files
Updated changelog
1 parent 51378bc commit 3bddf98

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
- Add `validate_access_token` function to providers
1212
- This can be used to verify the access token received from providers.
13+
- Implemented `validate_access_token` for the Github provider.
1314

1415
## [0.16.3] - 2023-09-28
1516

supertokens_python/recipe/thirdparty/providers/github.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ async def validate_access_token(
9090
f"{config.client_id}:{client_secret}".encode()
9191
).decode()
9292

93-
# POST request to get applications response
9493
url = f"https://api.github.com/applications/{config.client_id}/token"
9594
headers = {
9695
"Authorization": f"Basic {basic_auth_token}",
@@ -100,7 +99,6 @@ async def validate_access_token(
10099

101100
resp = requests.post(url, headers=headers, data=payload)
102101

103-
# Error handling and validation
104102
if resp.status_code != 200:
105103
raise ValueError("Invalid access token")
106104

0 commit comments

Comments
 (0)