Getting this error on Google login success. Though...
# support-questions-legacy
h
Getting this error on Google login success. Though login is happening fine.
Copy code
Error: No access, refresh token, API key or refresh handler callback is set.
    at OAuth2Client.getRequestMetadataAsync (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/google-auth-library/build/src/auth/oauth2client.js:272:19)
    at OAuth2Client.requestAsync (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/google-auth-library/build/src/auth/oauth2client.js:371:34)
    at OAuth2Client.request (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/google-auth-library/build/src/auth/oauth2client.js:365:25)
    at createAPIRequestAsync (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/googleapis-common/build/src/apirequest.js:273:31)
    at createAPIRequest (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/googleapis-common/build/src/apirequest.js:49:9)
    at Resource$Userinfo.get (/Users/hitesh/dev/jwt_supertokens_hasura/node_modules/googleapis/build/src/apis/oauth2/v2.js:104:58)
    at Object.<anonymous> (/Users/hitesh/dev/jwt_supertokens_hasura/dist/supertokens_config.js:117:57)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/hitesh/dev/jwt_supertokens_hasura/dist/supertokens_config.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Any suggestions?
r
hey @hitesh.io i have no idea which lib is beign used here. This does not seem to be an error from supertokens.
h
This looks like google auth lib. But I have not installed it seperately, its coming as supertokens package. Is there any config I might be missing?
r
it
we don't install google auth lib
h
ah. I get it. I am using let OAuth2 = google.auth.OAuth2; let oauth2Client = new OAuth2(); To get user profile and update user metadata.
also QQ. Is it safe to publically hst jwks.json
Also, this is happening after upgrade. I think you guys changed something here at let response = await originalImplementation.thirdPartySignInUpPOST(input); the response.oAuthTokens.accessToken is undefined.
r
> Is it safe to publically hst jwks.json Yes
about response.oAuthTokens.accessToken is undefined, please see our changelog on our github
35 Views