https://supertokens.com/docs/thirdparty/common-customizations/handling-signinup-success - Guys I am ...
r
https://supertokens.com/docs/thirdparty/common-customizations/handling-signinup-success - Guys I am trying to access the response from the OAuth 2 provider that contains their tokens or user info. According to the docs:
Copy code
let providerAccessToken = response.oAuthTokens["access_token"];
                                let firstName = response.rawUserInfoFromProvider.fromUserInfoAPI!["first_name"];
This should be the way to go. However, this is what Typescript tells me:
Copy code
Property 'oAuthTokens' does not exist on type '{ status: "OK"; createdNewUser: boolean; user: User; }'.
I am using
"supertokens-node": "14.1.4"
. Are these docs out of date?
r
Hey @robschilder
The version of the SDK you are using is an older one.
Older docs will be viewable next week onwards.
r
Thanks for the answer 🙂 I might use an archive tool of the web then