Skip to content

Commit 8d85e77

Browse files
committed
fix: github userid conversion
1 parent 7632d2f commit 8d85e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipe/thirdparty/providers/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func getSupertokensUserInfoFromRawUserInfoResponseForGithub(rawUserInfoResponse
135135
}
136136

137137
result := tpmodels.TypeUserInfo{
138-
ThirdPartyUserId: fmt.Sprint(rawUserInfoResponse.FromUserInfoAPI["user"].(map[string]interface{})["id"]),
138+
ThirdPartyUserId: fmt.Sprint(int64(rawUserInfoResponse.FromUserInfoAPI["user"].(map[string]interface{})["id"].(float64))),
139139
}
140140

141141
emailsInfo := rawUserInfoResponse.FromUserInfoAPI["emails"].([]interface{})

0 commit comments

Comments
 (0)