File tree Expand file tree Collapse file tree 3 files changed +1
-2
lines changed
supertokens_python/recipe/thirdparty/providers Expand file tree Collapse file tree 3 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
11
11
- Add ` validate_access_token ` function to providers
12
12
- This can be used to verify the access token received from providers.
13
+ - Implemented ` validate_access_token ` for the Github provider.
13
14
14
15
## [ 0.16.3] - 2023-09-28
15
16
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ async def validate_access_token(
90
90
f"{ config .client_id } :{ client_secret } " .encode ()
91
91
).decode ()
92
92
93
- # POST request to get applications response
94
93
url = f"https://api.github.com/applications/{ config .client_id } /token"
95
94
headers = {
96
95
"Authorization" : f"Basic { basic_auth_token } " ,
@@ -100,7 +99,6 @@ async def validate_access_token(
100
99
101
100
resp = requests .post (url , headers = headers , data = payload )
102
101
103
- # Error handling and validation
104
102
if resp .status_code != 200 :
105
103
raise ValueError ("Invalid access token" )
106
104
File renamed without changes.
You can’t perform that action at this time.
0 commit comments