Skip to content

Commit

Permalink
Updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMayankThakur committed Oct 4, 2023
1 parent 51378bc commit 3bddf98
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

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

## [0.16.3] - 2023-09-28

Expand Down
2 changes: 0 additions & 2 deletions supertokens_python/recipe/thirdparty/providers/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ async def validate_access_token(
f"{config.client_id}:{client_secret}".encode()
).decode()

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

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

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

Expand Down
File renamed without changes.

0 comments on commit 3bddf98

Please sign in to comment.