File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
supertokens_python/recipe/thirdparty/providers Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 24
24
25
25
from .custom import GenericProvider , NewProvider
26
26
from ..provider import Provider , ProviderConfigForClient , ProviderInput
27
+ from ..types import RawUserInfoFromProvider
27
28
28
29
29
30
class GithubImpl (GenericProvider ):
@@ -45,16 +46,18 @@ async def get_user_info(
45
46
"Accept" : "application/vnd.github.v3+json" ,
46
47
}
47
48
48
- raw_response = {}
49
+ raw_user_info_from_provider = RawUserInfoFromProvider ({}, {})
49
50
50
51
email_info : List [Any ] = await do_get_request ("https://api.github.com/user/emails" , headers = headers ) # type: ignore
51
52
user_info = await do_get_request ("https://api.github.com/user" , headers = headers )
52
53
53
- raw_response ["emails" ] = email_info
54
- raw_response [ "user" ] = user_info
54
+ user_info ["emails" ] = email_info
55
+ raw_user_info_from_provider . from_user_info_api = user_info
55
56
56
57
result = UserInfo (
57
58
third_party_user_id = str (user_info .get ("id" )),
59
+ email = None ,
60
+ raw_user_info_from_provider = raw_user_info_from_provider ,
58
61
)
59
62
60
63
for info in email_info :
You can’t perform that action at this time.
0 commit comments