idanto
08/14/2023, 3:43 PMgetThirdPartyAuthorisationURLWithQueryParamsAndSetState
from 'supertokens-auth-react/recipe/thirdpartypasswordless'
but after upgrade to the latest package version we are getting in runtime the error:
TypeError: Cannot read properties of undefined (reading 'startsWith')
at appendQueryParamsToUR
I see in the docs this is the reference example: import { getThirdPartyAuthorisationURLWithQueryParamsAndSetState } from "supertokens-web-js/recipe/thirdpartypasswordless";
is this the reason for the error or we are doing something else wrong?rp_st
08/14/2023, 3:44 PMidanto
08/14/2023, 3:45 PMrp_st
08/14/2023, 3:45 PMidanto
08/14/2023, 3:45 PMidanto
08/14/2023, 3:45 PMrp_st
08/14/2023, 3:45 PMidanto
08/14/2023, 3:45 PMidanto
08/14/2023, 3:46 PMrp_st
08/14/2023, 3:47 PMrp_st
08/14/2023, 3:47 PMgetThirdPartyAuthorisationURLWithQueryParamsAndSetState
funcidanto
08/14/2023, 3:48 PMidanto
08/14/2023, 3:49 PMrp_st
08/14/2023, 3:49 PMidanto
08/14/2023, 3:49 PMrp_st
08/14/2023, 3:49 PMidanto
08/14/2023, 3:51 PMrp_st
08/14/2023, 3:51 PMidanto
08/14/2023, 3:51 PMgetThirdPartyAuthorisationURLWithQueryParamsAndSetState
trigger the network requestidanto
08/14/2023, 3:51 PMidanto
08/14/2023, 3:52 PMrp_st
08/14/2023, 3:53 PMidanto
08/14/2023, 3:54 PM{
"status": "OK",
"url": "https://www.facebook.com/v9.0/dialog/oauth?scope=pages_show_list+pages_read_engagement+pages_read_user_content+pages_manage_posts+pages_manage_engagement+public_profile+email+instagram_basic+instagram_content_publish&response_type=code&client_id=1582699122221048"
}
idanto
08/14/2023, 3:55 PMrp_st
08/14/2023, 3:57 PMrp_st
08/14/2023, 3:58 PMrp_st
08/14/2023, 3:59 PMidanto
08/14/2023, 3:59 PMrp_st
08/14/2023, 4:00 PMrp_st
08/14/2023, 4:00 PMrp_st
08/14/2023, 4:00 PMidanto
08/14/2023, 4:00 PMrp_st
08/14/2023, 4:00 PMurlWithQueryParams
instead of url
idanto
08/14/2023, 4:00 PMidanto
08/14/2023, 4:00 PMidanto
08/14/2023, 4:01 PMidanto
08/14/2023, 4:01 PMrp_st
08/14/2023, 4:01 PMidanto
08/14/2023, 4:03 PMrp_st
08/14/2023, 4:04 PMrp_st
08/14/2023, 4:04 PM{
"status": "OK",
"urlWithQueryParams": "https://supertokens.io/dev/oauth/redirect-to-provider?client_id=1060725074195-kmeum4crr01uirfl2op9kd5acmi9jutn.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fthirdpartypasswordless.demo.supertokens.com%2Fauth%2Fcallback%2Fgoogle&response_type=code&scope=openid+email&included_grant_scopes=true&access_type=offline&actual_redirect_uri=https%3A%2F%2Faccounts.google.com%2Fo%2Foauth2%2Fv2%2Fauth"
}
idanto
08/14/2023, 4:06 PMrp_st
08/14/2023, 4:07 PMidanto
08/14/2023, 4:08 PMrp_st
08/14/2023, 4:09 PMidanto
08/14/2023, 4:09 PMrp_st
08/14/2023, 4:09 PMidanto
08/14/2023, 4:13 PMrp_st
08/14/2023, 4:14 PMidanto
08/14/2023, 4:14 PMidanto
08/14/2023, 4:15 PMrp_st
08/14/2023, 4:15 PMidanto
08/14/2023, 4:15 PMidanto
08/14/2023, 4:15 PMrp_st
08/14/2023, 4:16 PMrp_st
08/14/2023, 4:16 PMidanto
08/14/2023, 4:16 PMidanto
08/14/2023, 4:16 PMrp_st
08/14/2023, 4:16 PMrp_st
08/14/2023, 4:17 PMidanto
08/14/2023, 4:17 PMidanto
08/14/2023, 4:19 PMidanto
08/14/2023, 4:19 PMrp_st
08/14/2023, 4:19 PMidanto
08/14/2023, 4:19 PM