8bitjonny
11/14/2023, 12:39 AM32591853.000000
while now (v0.16.6) its in the format of 3.2591853e+07
. I tried finding mentions of that in the github issues or here in discord but found nothing. Both notations seem weird when I curl https://api.github.com/user
with the auth token and get the id simply back as "id": 32591853
but yeah it cannot change because then the user can't log in to his account anymore, no?
Can you confirm this bug / breaking change?
EDIT: And I think I even found the code change that causes this breaking change:
ID := fmt.Sprintf("%f", userInfo["id"].(float64)) // github userId will be a number
(https://github.com/supertokens/supertokens-golang/blob/c93291f8d7c7d7da5633dd81b5f9983040f64def/recipe/thirdparty/providers/github.go#L96C6-L96C89)
changed to
fmt.Sprint(rawUserInfoResponse.FromUserInfoAPI["user"].(map[string]interface{})["id"])
(https://github.com/supertokens/supertokens-golang/blob/7632d2f55e0a38b26ddde7a38ae038d66c3f9644/recipe/thirdparty/providers/github.go#L138C21-L138C107)
so the conversion to float has been removed and thats what must be causing it.rp_st
11/14/2023, 6:50 AMSuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).
Powered by